use local variable everywhere
This commit is contained in:
parent
2409f898fa
commit
45a642fcb1
1 changed files with 7 additions and 7 deletions
14
run.bat
14
run.bat
|
@ -1,15 +1,15 @@
|
|||
@ECHO off
|
||||
|
||||
:: Check python installation
|
||||
python.exe --version > NUL
|
||||
|
||||
:: Clean potential error or python version
|
||||
CLS
|
||||
|
||||
:: Variables
|
||||
SET "pipR=pip install -r .\requirements.txt"
|
||||
SET "py=python.exe"
|
||||
|
||||
:: Check python installation
|
||||
%py% --version > NUL
|
||||
|
||||
:: Clean potential error or python version
|
||||
CLS
|
||||
|
||||
IF errorlevel 1 (
|
||||
ECHO Installation of Python not found, installation...
|
||||
|
||||
|
@ -28,7 +28,7 @@ IF errorlevel 1 (
|
|||
%py% -m %pipR%
|
||||
) ELSE (
|
||||
:: Check dependencies
|
||||
python.exe -m %pipR% > NUL
|
||||
%py% -m %pipR% > NUL
|
||||
)
|
||||
|
||||
:: Run app
|
||||
|
|
Reference in a new issue