Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-09-30 09:56:35 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-09-30 09:56:35 +0000
commit54e2161e2948b9d30ad216c926f11f96246ed1c4 (patch)
treee91d986b3300651c4d334852606e80ed3a619c69 /archinstall/lib
parent63d774b7d7f82cd0a4ab59c44128d271baaa6dd4 (diff)
Tweaked the import logic so that the Imported() class returns the actual module imported when executing the import, rather than returning itself. Also fixed awesome so that it loads and looks for _prep_function() with a safe and correct namespace
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/profiles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 6d7a8b42..47e6dd36 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -47,7 +47,7 @@ class Imported():
def __enter__(self, *args, **kwargs):
self.spec.loader.exec_module(self.imported)
- return self
+ return self.imported
def __exit__(self, *args, **kwargs):
# TODO: https://stackoverflow.com/questions/28157929/how-to-safely-handle-an-exception-inside-a-context-manager