##// END OF EJS Templates
win32: use explicit path to "python.exe" only if it exists...
FUJIWARA Katsunori -
r19091:f01a351d stable
parent child Browse files
Show More
@@ -4,9 +4,14 rem Windows Driver script for Mercurial
4 4 setlocal
5 5 set HG=%~f0
6 6
7 rem Use a full path to Python (relative to this script) as the standard Python
8 rem install does not put python.exe on the PATH...
7 rem Use a full path to Python (relative to this script) if it exists,
8 rem as the standard Python install does not put python.exe on the PATH...
9 rem Otherwise, expect that python.exe can be found on the PATH.
9 10 rem %~dp0 is the directory of this script
10 11
12 if exist "%~dp0..\python.exe" (
11 13 "%~dp0..\python" "%~dp0hg" %*
14 ) else (
15 python "%~dp0hg" %*
16 )
12 17 endlocal
General Comments 0
You need to be logged in to leave comments. Login now