Revert "Possibly fix false positive error message for python package requirements"

This reverts commit 63f39c5c05.
This commit is contained in:
codemann8
2025-05-16 23:43:41 -05:00
parent 4cd1443634
commit be4a440f6c

View File

@@ -11,9 +11,8 @@ def check_requirements(console=False):
'pyyaml': 'yaml'}
missing = []
for package, import_name in check_packages.items():
try:
__import__(import_name)
except ImportError:
spec = importlib.util.find_spec(import_name)
if spec is None:
missing.append(package)
if len(missing) > 0:
packages = ','.join(missing)