mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +01:00
waf.bat changed to support Python3 installation on Windows.
This commit is contained in:
parent
68bd42b235
commit
30d0673873
2
wscript
2
wscript
@ -425,7 +425,7 @@ def create_waf(self, *k, **kw):
|
|||||||
if sys.platform == 'win32' or Options.options.make_batch:
|
if sys.platform == 'win32' or Options.options.make_batch:
|
||||||
f = open('waf.bat', 'w')
|
f = open('waf.bat', 'w')
|
||||||
try:
|
try:
|
||||||
f.write('@python -x "%~dp0waf" %*\n@exit /b %ERRORLEVEL%\n')
|
f.write('@setlocal\n@set PYEXE=python\n@where %PYEXE% 1>NUL 2>NUL\n@if %ERRORLEVEL% neq 0 set PYEXE=py\n@%PYEXE% -x "%~dp0waf" %*\n@exit /b %ERRORLEVEL%\n')
|
||||||
finally:
|
finally:
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user