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
:: 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