build/xilinx/programmer: fix settings in run_vivado (update)

This commit is contained in:
Florent Kermarrec 2017-12-19 10:29:29 +01:00
parent 4c82eb549f
commit a3390bb403
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ def _run_vivado(path, ver, cmds):
if sys.platform == "win32" or sys.platform == "cygwin":
vivado_cmd = "vivado -mode tcl"
else:
settings = common.settings(path, ver)
settings = common.settings(path, "", ver, first="name")
vivado_cmd = "bash -c \"source " + settings + "&& vivado -mode tcl\""
with subprocess.Popen(vivado_cmd, stdin=subprocess.PIPE, shell=True) as process:
process.stdin.write(cmds.encode("ASCII"))