From 45a642fcb1ff7b8211f1fedd3c0d67d7b82459da Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 5 Apr 2023 12:14:31 +0200 Subject: [PATCH] use local variable everywhere --- run.bat | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/run.bat b/run.bat index ab8f994..0d324ae 100644 --- a/run.bat +++ b/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