mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-11 11:24:16 +00:00
test distro dependency
This commit is contained in:
@@ -400,6 +400,16 @@ def dependencies_met():
|
|||||||
assert toml
|
assert toml
|
||||||
except ImportError as exc:
|
except ImportError as exc:
|
||||||
raise Exception(err) from exc
|
raise Exception(err) from exc
|
||||||
|
|
||||||
|
# distro
|
||||||
|
name = 'distro'
|
||||||
|
err = f'missing python module \"{name}\"'
|
||||||
|
try:
|
||||||
|
import distro
|
||||||
|
assert distro
|
||||||
|
except ImportError as exc:
|
||||||
|
raise Exception(err) from exc
|
||||||
|
|
||||||
# pylint: enable=C0415
|
# pylint: enable=C0415
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user