diff --git a/artiq/frontend/artiq_flash.py b/artiq/frontend/artiq_flash.py index 4de71744f..0d6e791ad 100755 --- a/artiq/frontend/artiq_flash.py +++ b/artiq/frontend/artiq_flash.py @@ -72,6 +72,9 @@ def main(): if opts.dir is None: opts.dir = os.path.join(artiq_dir, "binaries", "{}-{}".format(opts.target, opts.adapter)) + if not os.path.exists(opts.dir): + raise SystemExit("Binaries directory '{}' does not exist" + .format(opts.dir)) conv = False