Profile filename confusion between list_profiles() and @path declaration.

This commit is contained in:
Anton Hvornum 2020-11-29 21:43:49 +00:00
parent 4fd1e96d24
commit 0a085e5106
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class Script():
examples = list_profiles()
if f"{self.profile}" in examples:
return self.localize_path(examples[f"{self.profile}.py"]['path'])
return self.localize_path(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'])