mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-07-06 01:20:25 +02:00
Updated scripts to install sdkit into existing installations, while still working with new installations
This commit is contained in:
15
scripts/check_modules.py
Normal file
15
scripts/check_modules.py
Normal 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')
|
Reference in New Issue
Block a user