diff --git a/artiq/frontend/artiq_flash.py b/artiq/frontend/artiq_flash.py index d6f279be0..5536565cd 100755 --- a/artiq/frontend/artiq_flash.py +++ b/artiq/frontend/artiq_flash.py @@ -82,7 +82,7 @@ class Programmer: "-s", scripts_path() ] if self.target_file is not None: - cmdline += ["-f", target_file] + cmdline += ["-f", self.target_file] cmdline += ["-c", "; ".join(self.prog)] subprocess.check_call(cmdline)