Syntax error on conditional assignment

This commit is contained in:
Anton Hvornum 2019-11-13 21:54:41 +00:00
parent f9f6d890ae
commit f61ffee65a
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ 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
local_path = './deployments/applications' if isfile('./archinstall.py') else './archinstall/deployments/applications' # Dangerous assumption
if isfile(f'{local_path}/deployments/applications/{target}.json'):
with open(f'{local_path}/deployments/applications/{target}.json', 'r') as fh:
instructions = fh.read()