* update pip

* python alias
This commit is contained in:
Mylloon 2023-04-04 10:46:48 +02:00
parent 5bf40449f8
commit c64b92caae
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

20
run.bat
View file

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