Syntax error on conditional assignment

This commit is contained in:
Anton Hvornum 2019-11-13 21:55:24 +00:00
parent f61ffee65a
commit 89a1a89a06
1 changed files with 1 additions and 1 deletions

View File

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