From 6067d5ce27a4976d572eefa93e7f905e1c95358b Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Mon, 22 Aug 2022 21:26:46 +0200 Subject: [PATCH] test distro dependency --- dotdrop/utils.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dotdrop/utils.py b/dotdrop/utils.py index 3a26b14..0c28b89 100644 --- a/dotdrop/utils.py +++ b/dotdrop/utils.py @@ -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