index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-07-10 08:40:23 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-07-10 08:40:23 +0000 |
commit | 84410113c20f7614fcaa442723618b14352bdc4f (patch) | |
tree | 5c7caead53f193fb91538c5a168d126e65e5c128 /archinstall | |
parent | 3c0f4cebce2a9526d621c647b2b91d07c4817a68 (diff) |
-rw-r--r-- | archinstall/__main__.py | 5 |
diff --git a/archinstall/__main__.py b/archinstall/__main__.py index 04004674..d5869020 100644 --- a/archinstall/__main__.py +++ b/archinstall/__main__.py @@ -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
\ No newline at end of file + sys.modules[library[f'{profile}.py']] = imported_path |