xonsh/tests/bin/pwd.bat

15 lines
231 B
Batchfile
Raw Normal View History

2016-09-25 20:43:27 -04:00
@echo on
2016-09-24 15:56:15 -04:00
call :s_which py.exe
2016-09-25 20:43:27 -04:00
rem note that %~dp0 is dir of this batch script
2016-09-24 15:56:15 -04:00
if not "%_path%" == "" (
2016-09-25 20:43:27 -04:00
py -3 %~dp0pwd %*
2016-09-24 15:56:15 -04:00
) else (
2016-09-25 20:43:27 -04:00
python %~dp0pwd %*
2016-09-24 15:56:15 -04:00
)
goto :eof
:s_which
setlocal
endlocal & set _path=%~$PATH:1
2016-09-25 20:43:27 -04:00
goto :eof