Revert "Possibly fix false positive error message for python package requirements"
This reverts commit 63f39c5c05.
This commit is contained in:
@@ -11,9 +11,8 @@ def check_requirements(console=False):
|
|||||||
'pyyaml': 'yaml'}
|
'pyyaml': 'yaml'}
|
||||||
missing = []
|
missing = []
|
||||||
for package, import_name in check_packages.items():
|
for package, import_name in check_packages.items():
|
||||||
try:
|
spec = importlib.util.find_spec(import_name)
|
||||||
__import__(import_name)
|
if spec is None:
|
||||||
except ImportError:
|
|
||||||
missing.append(package)
|
missing.append(package)
|
||||||
if len(missing) > 0:
|
if len(missing) > 0:
|
||||||
packages = ','.join(missing)
|
packages = ','.join(missing)
|
||||||
|
|||||||
Reference in New Issue
Block a user