From 7f57e670da6f6aaabd17a5274d481e3e271a4735 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 6 Dec 2020 11:38:23 +0100 Subject: Returning Profile() to correctly handle with statement --- archinstall/lib/profiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archinstall/lib') diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py index f51db66d..d6f49d1d 100644 --- a/archinstall/lib/profiles.py +++ b/archinstall/lib/profiles.py @@ -130,7 +130,7 @@ class Script(): imported = importlib.util.module_from_spec(self.spec) sys.modules[self.namespace] = imported - return imported + return self def execute(self): if not self.namespace in sys.modules or self.spec is None: -- cgit v1.2.3-54-g00ecf