diff --git a/run.bat b/run.bat index 7ffdcbe..3568d8c 100644 --- a/run.bat +++ b/run.bat @@ -8,7 +8,7 @@ CLS :: Variables set "pipR=pip install -r .\requirements.txt" -set "run=.\main.py" +set "py=python.exe" IF errorlevel 1 ( ECHO Installation of Python not found, installation... @@ -18,18 +18,20 @@ IF errorlevel 1 ( ECHO Download and installation of dependencies... + :: Location of Python + set "py=%LOCALAPPDATA%\Microsoft\WindowsApps\%py%" + + :: Update pip + %py% -m pip install --upgrade pip + :: Install dependencies - %LOCALAPPDATA%\Microsoft\WindowsApps\python.exe -m %pipR% - - :: Run app - %LOCALAPPDATA%\Microsoft\WindowsApps\python.exe %run% - + %py% -m %pipR% ) ELSE ( :: Check dependencies python.exe -m %pipR% > NUL - - :: Run app - python.exe %run% ) +:: Run app +%py% .\main.py --list=1,2,3,4,5,7,8 + EXIT /b