Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-12-06 17:16:59 +0100
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-12-06 17:16:59 +0100
commit4d0f89e0843a50757d11a408c452a862f9ac00c7 (patch)
treef76c639f843cbf86d3876b4d8fa13f291e1b8457
parent22e1271a0b339947b2434c19d770f46947d3bfa5 (diff)
Variable issue in Application() from the latest change.
-rw-r--r--archinstall/lib/profiles.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index dc957da4..f9aa206c 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -171,17 +171,17 @@ class Application(Profile):
if not self.examples:
self.examples = list_profiles(subpath='/applications')
- if f"{self.profile}" in examples:
- return self.localize_path(examples[self.profile]['path'])
+ if f"{self.profile}" in self.examples:
+ return self.localize_path(self.examples[self.profile]['path'])
# TODO: Redundant, the below block shouldnt be needed as profiles are stripped of their .py, but just in case for now:
- elif f"{self.profile}.py" in examples:
- return self.localize_path(examples[f"{self.profile}.py"]['path'])
+ elif f"{self.profile}.py" in self.examples:
+ return self.localize_path(self.examples[f"{self.profile}.py"]['path'])
# Path was not found in any known examples, check if it's an abolute path
if os.path.isfile(self.profile):
return os.path.basename(self.profile)
- raise ProfileNotFound(f"Application file {self.profile} does not exist in {examples}")
+ raise ProfileNotFound(f"Application file {self.profile} does not exist in {storage['PROFILE_PATH']}")
elif parsed_url.scheme in ('https', 'http'):
return self.localize_path(self.profile)
else: