Fix test dependency on xonsh.bat (and xon.sh)

This commit is contained in:
Bob Hyman 2020-08-10 00:42:36 -04:00
parent 2f439fef21
commit c22e80b717
2 changed files with 2 additions and 1 deletions

View file

@ -16,6 +16,7 @@ exclude =
.vscode/, .vscode/,
feedstock, feedstock,
rever, rever,
.venv,
# remove later # remove later
pygments_cache.py pygments_cache.py
# lint nits that are acceptable in Xonsh project: # lint nits that are acceptable in Xonsh project:

View file

@ -61,7 +61,7 @@ def run_xonsh(cmd, stdin=sp.PIPE, stdout=sp.PIPE, stderr=sp.STDOUT, single_comma
env["XONSH_SHOW_TRACEBACK"] = "1" env["XONSH_SHOW_TRACEBACK"] = "1"
env["RAISE_SUBPROC_ERROR"] = "0" env["RAISE_SUBPROC_ERROR"] = "0"
env["PROMPT"] = "" env["PROMPT"] = ""
xonsh = "xonsh.bat" if ON_WINDOWS else "xon.sh" xonsh = "xonsh.exe" if ON_WINDOWS else "xonsh"
xonsh = shutil.which(xonsh, path=PATH) xonsh = shutil.which(xonsh, path=PATH)
if single_command: if single_command:
args = [xonsh, "--no-rc", "-c", cmd] args = [xonsh, "--no-rc", "-c", cmd]