Spelling error
This commit is contained in:
parent
3c0f4cebce
commit
84410113c2
|
|
@ -13,9 +13,8 @@ def find_examples():
|
|||
|
||||
return {os.path.basename(path): path for path in glob.glob(f'{examples}/*.py')}
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) == 1: sys.arv.append('guided')
|
||||
if len(sys.argv) == 1: sys.argv.append('guided')
|
||||
|
||||
profile = sys.argv[1]
|
||||
library = find_examples()
|
||||
|
|
@ -26,4 +25,4 @@ if __name__ == '__main__':
|
|||
spec = importlib.util.spec_from_file_location(library[f'{profile}.py'], library[f'{profile}.py'])
|
||||
imported_path = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(imported_path)
|
||||
sys.modules[library[f'{profile}.py']] = imported_path
|
||||
sys.modules[library[f'{profile}.py']] = imported_path
|
||||
|
|
|
|||
Loading…
Reference in New Issue