mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-25 01:34:38 +01:00
16 lines
252 B
Python
16 lines
252 B
Python
'''
|
|
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')
|