From e9a3e5642e5fd23369f6e19469ef2df16e2a4b69 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Mon, 16 May 2016 23:15:12 +0200 Subject: [PATCH] flash: tcl-quote paths (c.f. #256) --- artiq/frontend/artiq_flash.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/artiq/frontend/artiq_flash.py b/artiq/frontend/artiq_flash.py index 18d3e2418..0d93801d0 100755 --- a/artiq/frontend/artiq_flash.py +++ b/artiq/frontend/artiq_flash.py @@ -88,7 +88,7 @@ def main(): "/usr/local/share/migen", "/usr/share/migen"]: proxy_ = os.path.join(p, proxy_base) if os.access(proxy_, os.R_OK): - proxy = "jtagspi_init 0 {}".format(proxy_) + proxy = "jtagspi_init 0 {{{}}}".format(proxy_) break if not proxy: raise SystemExit( @@ -100,19 +100,19 @@ def main(): bin_handle, bin = tempfile.mkstemp() bit = os.path.join(opts.dir, "top.bit") conv = True - prog.append("jtagspi_program {} 0x{:x}".format( + prog.append("jtagspi_program {{{}}} 0x{:x}".format( bin, config["gateware"])) elif action == "bios": - prog.append("jtagspi_program {} 0x{:x}".format( + prog.append("jtagspi_program {{{}}} 0x{:x}".format( os.path.join(opts.dir, "bios.bin"), config["bios"])) elif action == "runtime": - prog.append("jtagspi_program {} 0x{:x}".format( + prog.append("jtagspi_program {{{}}} 0x{:x}".format( os.path.join(opts.dir, "runtime.fbi"), config["runtime"])) elif action == "storage": - prog.append("jtagspi_program {} 0x{:x}".format( + prog.append("jtagspi_program {{{}}} 0x{:x}".format( opts.storage, config["storage"])) elif action == "load": - prog.append("pld load 0 {}".format( + prog.append("pld load 0 {{{}}}".format( os.path.join(opts.dir, "top.bit"))) elif action == "start": prog.append(config["start"])