From 4fd1e96d24e55bd414547cb6401d2ea1efbadf7a Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 29 Nov 2020 21:40:17 +0000 Subject: Profile filename confusion between list_profiles() and @path declaration. --- archinstall/lib/profiles.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py index 1515c8ea..25b124fd 100644 --- a/archinstall/lib/profiles.py +++ b/archinstall/lib/profiles.py @@ -109,7 +109,10 @@ class Script(): # Try to locate all local or known URL's examples = list_profiles() - if f"{self.profile}.py" in examples: + if f"{self.profile}" in examples: + return self.localize_path(examples[f"{self.profile}.py"]['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']) # Path was not found in any known examples, check if it's an abolute path -- cgit v1.2.3-54-g00ecf