From d3462aa4833898ae7ba57feb8d5b10a028863b2a Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 6 Dec 2020 11:32:31 +0100 Subject: Moving self.installer to Script() instead of Profile() --- archinstall/lib/profiles.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archinstall/lib') diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py index a85e4f6e..0d1c78ee 100644 --- a/archinstall/lib/profiles.py +++ b/archinstall/lib/profiles.py @@ -66,11 +66,12 @@ def list_profiles(filter_irrelevant_macs=True): return cache class Script(): - def __init__(self, profile): + def __init__(self, profile, installer=None): # profile: https://hvornum.se/something.py # profile: desktop # profile: /path/to/profile.py self.profile = profile + self.installer = installer self.converted_path = None self.namespace = os.path.splitext(os.path.basename(self.path))[0] @@ -132,8 +133,7 @@ class Script(): class Profile(Script): def __init__(self, installer, path, args={}): - super(Profile, self).__init__(path) - self.installer = installer + super(Profile, self).__init__(path, installer) self._cache = None def __dump__(self, *args, **kwargs): -- cgit v1.2.3-54-g00ecf