Added debugging to find application issue

This commit is contained in:
Anton Hvornum 2020-12-06 11:54:38 +01:00
parent 74c351f27f
commit 017b4b4fa9
1 changed files with 8 additions and 0 deletions

View File

@ -168,6 +168,14 @@ class Application(Profile):
# Try to locate all local or known URL's
examples = list_profiles(subpath='/applications')
import time
print(self.profile)
print('Examples:', examples)
print(f"{self.profile}" in examples)
print(f"{self.profile}.py" in examples)
print(os.path.isfile(self.profile))
time.sleep(30)
if f"{self.profile}" in examples:
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: