index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-10-20 20:39:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 20:39:46 +0200 |
commit | 2fc51d540a78da3d7cf24b595a611f45915a55d0 (patch) | |
tree | 4e2b46493fadf9cf777e9371545a2e93d1510b17 /archinstall/__main__.py | |
parent | f32f1e238a0a36b0d1b5220df6f6f053c6c4168c (diff) | |
parent | 5ded22a5d0f5fb1cf1d4d95945f655e8b6a33896 (diff) |
-rw-r--r-- | archinstall/__main__.py | 11 |
diff --git a/archinstall/__main__.py b/archinstall/__main__.py index fd536258..fe4a3732 100644 --- a/archinstall/__main__.py +++ b/archinstall/__main__.py @@ -21,7 +21,7 @@ def find_examples(): def run_as_a_module(): """ - Ssince we're running this as a 'python -m archinstall' module OR + Since we're running this as a 'python -m archinstall' module OR a nuitka3 compiled version of the project. This function and the file __main__ acts as a entry point. """ @@ -30,14 +30,17 @@ def run_as_a_module(): profile = sys.argv[1] library = find_examples() - if not f'{profile}.py' in library: + if f'{profile}.py' not in library: raise ProfileNotFound(f'Could not locate {profile}.py among the example files.') # Import and execute the chosen `<profile>.py`: - spec = importlib.util.spec_from_file_location(library[f'{profile}.py'], library[f'{profile}.py']) + 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 if __name__ == '__main__': - run_as_a_module()
\ No newline at end of file + run_as_a_module() |