Update MakeInstall.bat

This commit is contained in:
CorpNewt 2019-02-21 13:30:04 -06:00 committed by GitHub
parent 6f07885e79
commit 7607f7484a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 2 deletions

View File

@ -28,9 +28,20 @@ exit /B
setlocal enableDelayedExpansion
REM Setup initial vars
set "script_name=MakeInstall.py"
set "script_name=%~n0.py"
set "thisDir=%~dp0"
REM Check for our script first
if not exist "!thisDir!\!script_name!" (
echo Could not find !script_name!.
echo Please make sure to run this script from the same directory
echo as !script_name!.
echo.
echo Press [enter] to quit.
pause > nul
exit /b
)
REM Get python location
FOR /F "tokens=* USEBACKQ" %%F IN (`where python 2^> nul`) DO (
SET "python=%%F"
@ -57,4 +68,4 @@ if "%*"=="" (
"!python!" "!thisDir!!script_name!"
) else (
"!python!" "!thisDir!!script_name!" %*
)
)