1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 07:58:48 +00:00

test distro dependency

This commit is contained in:
deadc0de6
2022-08-22 21:26:46 +02:00
parent 9b6b685dcb
commit 6067d5ce27

View File

@@ -400,6 +400,16 @@ def dependencies_met():
assert toml
except ImportError as 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