From 5a07b22606a34e851a9465c50efafba2e6f7fec3 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 6 Dec 2020 12:12:10 +0100 Subject: Debugging --- archinstall/lib/profiles.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'archinstall') diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py index c2aa2aa2..cd408d52 100644 --- a/archinstall/lib/profiles.py +++ b/archinstall/lib/profiles.py @@ -23,6 +23,9 @@ def list_profiles(filter_irrelevant_macs=True, subpath=''): cache = {} # Grab all local profiles found in PROFILE_PATH for PATH_ITEM in storage['PROFILE_PATH']: + import time + print('Walking:', os.path.abspath(os.path.expanduser(PATH_ITEM+subpath))) + time.sleep(10) for root, folders, files in os.walk(os.path.abspath(os.path.expanduser(PATH_ITEM+subpath))): for file in files: if os.path.splitext(file)[1] == '.py': @@ -178,8 +181,8 @@ class Application(Profile): if os.path.isfile(self.profile): return os.path.basename(self.profile) - raise ProfileNotFound(f"File {self.profile} does not exist in {examples}") + raise ProfileNotFound(f"Application file {self.profile} does not exist in {examples}") elif parsed_url.scheme in ('https', 'http'): return self.localize_path(self.profile) else: - raise ProfileNotFound(f"Cannot handle scheme {parsed_url.scheme}") \ No newline at end of file + raise ProfileNotFound(f"Application cannot handle scheme {parsed_url.scheme}") \ No newline at end of file -- cgit v1.2.3-70-g09d2