Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-12-06 16:53:36 +0100
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-12-06 16:53:36 +0100
commitdf71d22498403dd2c407a90bbfe20767f5097e17 (patch)
treebf758511857ff8e9d719710e851d12461791e713
parentd00f0f00052faae11ce872e3f0156969f22eba5d (diff)
PATH correction for /examples/
-rw-r--r--archinstall/__main__.py2
-rw-r--r--archinstall/lib/profiles.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/archinstall/__main__.py b/archinstall/__main__.py
index dd702ecf..63c2f715 100644
--- a/archinstall/__main__.py
+++ b/archinstall/__main__.py
@@ -13,7 +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.
- archinstall.storage['PROFILE_PATH'].append(os.path.abspath(f'{os.path.dirname(__file__)}/../examples'))
+ archinstall.storage['PROFILE_PATH'].append(os.path.abspath(f'{os.path.dirname(__file__)}/examples'))
if len(sys.argv) == 1:
sys.argv.append('guided')
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index f6b8c846..49a20794 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -23,7 +23,6 @@ def list_profiles(filter_irrelevant_macs=True, subpath=''):
cache = {}
# Grab all local profiles found in PROFILE_PATH
for PATH_ITEM in storage['PROFILE_PATH']:
- print('Walking:', PATH_ITEM)
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':