Update install.py

This commit is contained in:
MrSanZz
2025-09-28 14:11:08 +07:00
committed by GitHub
parent 133f909823
commit 6566fe6a09

View File

@@ -102,13 +102,14 @@ def install_modules():
for modules in module:
try:
print(f"Installing {modules}...")
if modules in na_support and device == 1:
result = os.system(f'python3 -m pip install {modules}')
if modules in na_support:
if device == 1:
result = os.system(f'python3 -m pip install {modules}')
else:
print(f"[!] Skipped module: {modules} (Not supported in this device)")
continue
if result != 0:
failed_modules.append(modules)
else:
print(f"[!] Skipped module: {modules} (Not supported in this device)")
continue
except Exception as e:
print(f'[!] Module {modules} cannot be installed: {e}')
failed_modules.append(modules)