From a106ed02950b9a90e348c61f0bf8a508082cc537 Mon Sep 17 00:00:00 2001 From: Mike Birtwell Date: Fri, 18 Feb 2022 10:54:17 +0000 Subject: [PATCH] artiq_flash: don't try to make rtm_binary_dir if binary_dir unset (#1851) Signed-off-by: Michael Birtwell --- artiq/frontend/artiq_flash.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/artiq/frontend/artiq_flash.py b/artiq/frontend/artiq_flash.py index 12475cf0b..532d1da92 100755 --- a/artiq/frontend/artiq_flash.py +++ b/artiq/frontend/artiq_flash.py @@ -347,7 +347,10 @@ def main(): raise ValueError("the directory containing the binaries need to be specified using -d.") binary_dir = args.dir - rtm_binary_dir = os.path.join(binary_dir, "rtm") + 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()