Fixed issue where absolute paths to profiles got squashed

This commit is contained in:
Anton Hvornum 2020-12-06 12:00:56 +01:00
parent 9fb08387de
commit b6c6e414b1
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class Script():
# 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)
return self.profile
raise ProfileNotFound(f"File {self.profile} does not exist in {examples}")
elif parsed_url.scheme in ('https', 'http'):