Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
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 /examples
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 'examples')
-rw-r--r--examples/guided.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 0447df26..dcc8279c 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -94,7 +94,7 @@ while 1:
while 1:
profile = archinstall.select_profile(archinstall.list_profiles())
- if profile != str: # Got a imported profile
+ if type(profile) != str: # Got a imported profile
if not profile[1]._prep_function():
archinstall.log(' * Profile\'s preperation requirements was not fulfilled.', bg='black', fg='red')
continue