forked from M-Labs/artiq
1
0
Fork 0

artiq_flash: clear error message when bin directory is absent

This commit is contained in:
Sebastien Bourdeauducq 2016-04-05 16:09:41 +08:00
parent ed1c368e73
commit 1ff01a43ff
1 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,9 @@ def main():
if opts.dir is None: if opts.dir is None:
opts.dir = os.path.join(artiq_dir, "binaries", opts.dir = os.path.join(artiq_dir, "binaries",
"{}-{}".format(opts.target, opts.adapter)) "{}-{}".format(opts.target, opts.adapter))
if not os.path.exists(opts.dir):
raise SystemExit("Binaries directory '{}' does not exist"
.format(opts.dir))
conv = False conv = False