index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-13 21:56:14 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-13 21:56:14 +0000 |
commit | 3c10bbfe272442ba9aa66202bad042dba9e622cd (patch) | |
tree | b60c843daeb0208d797f7dce8047b37891dc8b6e | |
parent | 89a1a89a063b790842ec931f7c0ef5e9bfce2b0a (diff) |
-rw-r--r-- | archinstall.py | 8 |
diff --git a/archinstall.py b/archinstall.py index e61d5104..ae9e9c9d 100644 --- a/archinstall.py +++ b/archinstall.py @@ -424,8 +424,8 @@ def get_application_instructions(target): except urllib.error.HTTPError: print('[N] No instructions found for: {}'.format(target)) print('[N] Trying local instructions under ./deployments/applications') - local_path = './deployments/applications' if isfile('./archinstall.py') else './archinstall/deployments/applications' # Dangerous assumption - if isfile(f'{local_path}/deployments/applications/{target}.json'): + local_path = './deployments/applications' if os.path.isfile('./archinstall.py') else './archinstall/deployments/applications' # Dangerous assumption + if os.path.isfile(f'{local_path}/deployments/applications/{target}.json'): with open(f'{local_path}/deployments/applications/{target}.json', 'r') as fh: instructions = fh.read() @@ -450,8 +450,8 @@ def get_instructions(target): except urllib.error.HTTPError: print('[N] No instructions found called: {}'.format(target)) print('[N] Trying local instructions under ./deployments') - local_path = './deployments' if isfile('./archinstall.py') else './archinstall/deployments' # Dangerous assumption - if isfile(f'{local_path}/deployments/{target}.json'): + local_path = './deployments' if os.path.isfile('./archinstall.py') else './archinstall/deployments' # Dangerous assumption + if os.path.isfile(f'{local_path}/deployments/{target}.json'): with open(f'{local_path}/deployments/{target}.json', 'r') as fh: instructions = fh.read() |