index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | archinstall/lib/profiles.py | 5 |
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py index 60d41ea1..6d7a8b42 100644 --- a/archinstall/lib/profiles.py +++ b/archinstall/lib/profiles.py @@ -85,10 +85,11 @@ class Profile(): # def py_exec_mock(self): # spec.loader.exec_module(imported) - def load_instructions(self): + def load_instructions(self, namespace=None): if (absolute_path := self.path): if os.path.splitext(absolute_path)[1] == '.py': - namespace = os.path.splitext(os.path.basename(absolute_path))[0] + if not namespace: + namespace = os.path.splitext(os.path.basename(absolute_path))[0] spec = importlib.util.spec_from_file_location(namespace, absolute_path) imported = importlib.util.module_from_spec(spec) sys.modules[namespace] = imported |