mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
15 lines
No EOL
231 B
Batchfile
15 lines
No EOL
231 B
Batchfile
@echo on
|
|
call :s_which py.exe
|
|
rem note that %~dp0 is dir of this batch script
|
|
if not "%_path%" == "" (
|
|
py -3 %~dp0pwd %*
|
|
) else (
|
|
python %~dp0pwd %*
|
|
)
|
|
|
|
goto :eof
|
|
|
|
:s_which
|
|
setlocal
|
|
endlocal & set _path=%~$PATH:1
|
|
goto :eof |