Spelling error

This commit is contained in:
Anton Hvornum 2020-07-10 08:40:23 +00:00
parent 3c0f4cebce
commit 84410113c2
1 changed files with 2 additions and 3 deletions

View File

@ -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