index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-09-30 09:36:45 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-09-30 09:36:45 +0000 |
commit | 1bff423195c0890e9fa3d8d2cf40796873f7adc7 (patch) | |
tree | 42635aaf1941cee2ef76b0d893daead2dd942d07 | |
parent | 34e8e63f71be10f7406b2e30008be258539ba181 (diff) |
-rw-r--r-- | archinstall/lib/user_interaction.py | 6 |
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py index 48364b42..8dadbc29 100644 --- a/archinstall/lib/user_interaction.py +++ b/archinstall/lib/user_interaction.py @@ -52,8 +52,12 @@ def select_profile(options): # Some crude safety checks, make sure the imported profile has # a __name__ check and if so, check if it's got a _prep_function() # we can call to ask for more user input. + # + # If the requirements are met, import with .py in the namespace to not + # trigger a traditional: + # if __name__ == 'moduleName' if '__name__' in source_data and '_prep_function' in source_data: - with profile.load_instructions() as imported: + with profile.load_instructions(namespace=f"{selected_profile}.py") as imported: if hasattr(imported, '_prep_function'): return profile, imported |