mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
build/xilinx/programmer: fix vivado_cmd when settings are sourced manually.
This commit is contained in:
parent
ffa7ca8f0b
commit
85ade2b3b3
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue