use local variable everywhere

This commit is contained in:
Mylloon 2023-04-05 12:14:31 +02:00
parent 2409f898fa
commit 45a642fcb1
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

14
run.bat
View file

@ -1,15 +1,15 @@
@ECHO off @ECHO off
:: Check python installation
python.exe --version > NUL
:: Clean potential error or python version
CLS
:: Variables :: Variables
SET "pipR=pip install -r .\requirements.txt" SET "pipR=pip install -r .\requirements.txt"
SET "py=python.exe" SET "py=python.exe"
:: Check python installation
%py% --version > NUL
:: Clean potential error or python version
CLS
IF errorlevel 1 ( IF errorlevel 1 (
ECHO Installation of Python not found, installation... ECHO Installation of Python not found, installation...
@ -28,7 +28,7 @@ IF errorlevel 1 (
%py% -m %pipR% %py% -m %pipR%
) ELSE ( ) ELSE (
:: Check dependencies :: Check dependencies
python.exe -m %pipR% > NUL %py% -m %pipR% > NUL
) )
:: Run app :: Run app