artiq_flash: don't try to make rtm_binary_dir if binary_dir unset (#1851)

Signed-off-by: Michael Birtwell <michael.birtwell@oxionics.com>
This commit is contained in:
Mike Birtwell 2022-02-18 10:54:17 +00:00 committed by GitHub
parent c8b9eed9c9
commit a106ed0295
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -347,7 +347,10 @@ def main():
raise ValueError("the directory containing the binaries need to be specified using -d.")
binary_dir = args.dir
if binary_dir is not None:
rtm_binary_dir = os.path.join(binary_dir, "rtm")
else:
rtm_binary_dir = None
if args.host is None:
client = LocalClient()