Updated scripts to install sdkit into existing installations, while still working with new installations

This commit is contained in:
cmdr2
2022-12-24 13:37:50 +05:30
parent 107112d1c4
commit 6662dc66d5
7 changed files with 129 additions and 265 deletions

15
scripts/check_modules.py Normal file
View File

@ -0,0 +1,15 @@
'''
This script checks if the given modules exist
'''
import sys
import pkgutil
modules = sys.argv[1:]
missing_modules = []
for m in modules:
if pkgutil.find_loader(m) is None:
print('module', m, 'not found')
exit(1)
print('ok')