Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__main__.py
diff options
context:
space:
mode:
authorVarun Madiath <vamega@gmail.com>2020-10-19 22:59:30 -0400
committerVarun Madiath <vamega@gmail.com>2020-10-19 23:07:35 -0400
commit5ded22a5d0f5fb1cf1d4d95945f655e8b6a33896 (patch)
tree4e2b46493fadf9cf777e9371545a2e93d1510b17 /archinstall/__main__.py
parente4f363ce7dbd6ec27a30123caf262c99452a0dd4 (diff)
Fix some PEP-8 errors.
Diffstat (limited to 'archinstall/__main__.py')
-rw-r--r--archinstall/__main__.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/archinstall/__main__.py b/archinstall/__main__.py
index 6cd9d482..fe4a3732 100644
--- a/archinstall/__main__.py
+++ b/archinstall/__main__.py
@@ -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()