xonsh/tests/bin/wc.bat

15 lines
229 B
Batchfile
Raw Normal View History

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