Debug for testing

This commit is contained in:
Anton Hvornum 2020-12-06 17:08:43 +01:00
parent 271ca853d4
commit 94581b706a
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ def run_as_a_module():
"""
# Add another path for finding profiles, so that list_profiles() in Script() can find guided.py, unattended.py etc.
print(id(archinstall.storage), archinstall.storage)
archinstall.storage['PROFILE_PATH'].append(os.path.abspath(f'{os.path.dirname(__file__)}/examples'))
if len(sys.argv) == 1:

View File

@ -22,6 +22,7 @@ def list_profiles(filter_irrelevant_macs=True, subpath=''):
cache = {}
# Grab all local profiles found in PROFILE_PATH
print(id(storage), storage)
for PATH_ITEM in storage['PROFILE_PATH']:
for root, folders, files in os.walk(os.path.abspath(os.path.expanduser(PATH_ITEM+subpath))):
for file in files: