From 85ade2b3b35fb8093f22b573ba342affe3c055fb Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 30 Dec 2019 10:07:08 +0100 Subject: [PATCH] build/xilinx/programmer: fix vivado_cmd when settings are sourced manually. --- litex/build/xilinx/programmer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/build/xilinx/programmer.py b/litex/build/xilinx/programmer.py index 64f71860..0ad0abac 100644 --- a/litex/build/xilinx/programmer.py +++ b/litex/build/xilinx/programmer.py @@ -139,8 +139,8 @@ def _run_vivado(path, ver, cmds): break else: raise OSError("Unable to locate Vivado directory or settings.") - vivado_cmd += "source " + settings - vivado_cmd += " && vivado -mode tcl" + vivado_cmd += "source " + settings + " && " + vivado_cmd += "vivado -mode tcl" with subprocess.Popen(vivado_cmd, stdin=subprocess.PIPE, shell=True) as process: process.stdin.write(cmds.encode("ASCII")) process.communicate() -- 2.30.2