From 54e2161e2948b9d30ad216c926f11f96246ed1c4 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 30 Sep 2020 09:56:35 +0000 Subject: 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 --- examples/guided.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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 -- cgit v1.2.3-54-g00ecf