mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Fix test dependency on xonsh.bat (and xon.sh)
This commit is contained in:
parent
2f439fef21
commit
c22e80b717
2 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||||
|
|
|
@ -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]
|
||||||
|
|
Loading…
Add table
Reference in a new issue