Show More
@@ -4,9 +4,14 b' rem Windows Driver script for Mercurial' | |||||
4 | setlocal |
|
4 | setlocal | |
5 | set HG=%~f0 |
|
5 | set HG=%~f0 | |
6 |
|
6 | |||
7 |
rem Use a full path to Python (relative to this script) |
|
7 | rem Use a full path to Python (relative to this script) if it exists, | |
8 | rem install does not put python.exe on the PATH... |
|
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 | rem %~dp0 is the directory of this script |
|
10 | rem %~dp0 is the directory of this script | |
10 |
|
11 | |||
11 | "%~dp0..\python" "%~dp0hg" %* |
|
12 | if exist "%~dp0..\python.exe" ( | |
|
13 | "%~dp0..\python" "%~dp0hg" %* | |||
|
14 | ) else ( | |||
|
15 | python "%~dp0hg" %* | |||
|
16 | ) | |||
12 | endlocal |
|
17 | endlocal |
General Comments 0
You need to be logged in to leave comments.
Login now