2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

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

View File

@ -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