diff --git a/artiq/frontend/artiq_flash.py b/artiq/frontend/artiq_flash.py index 5605ddcbc..f2d73610e 100755 --- a/artiq/frontend/artiq_flash.py +++ b/artiq/frontend/artiq_flash.py @@ -114,9 +114,9 @@ class Programmer: cmdline = ["openocd"] if isinstance(self._client, LocalClient): cmdline += ["-s", scripts_path()] - cmdline += ["-c", "; ".join(script)] + cmdline += ["-c", "; ".join(self.script())] - cmdline = [arg.replace("{", "{{").replace("}", "}}") for arg in self.script()] + cmdline = [arg.replace("{", "{{").replace("}", "}}") for arg in cmdline] self._client.run_command(cmdline) def load(self, bitfile, pld):