* update pip
* python alias
This commit is contained in:
parent
5bf40449f8
commit
c64b92caae
1 changed files with 11 additions and 9 deletions
20
run.bat
20
run.bat
|
@ -8,7 +8,7 @@ CLS
|
||||||
|
|
||||||
:: Variables
|
:: Variables
|
||||||
set "pipR=pip install -r .\requirements.txt"
|
set "pipR=pip install -r .\requirements.txt"
|
||||||
set "run=.\main.py"
|
set "py=python.exe"
|
||||||
|
|
||||||
IF errorlevel 1 (
|
IF errorlevel 1 (
|
||||||
ECHO Installation of Python not found, installation...
|
ECHO Installation of Python not found, installation...
|
||||||
|
@ -18,18 +18,20 @@ IF errorlevel 1 (
|
||||||
|
|
||||||
ECHO Download and installation of dependencies...
|
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
|
:: Install dependencies
|
||||||
%LOCALAPPDATA%\Microsoft\WindowsApps\python.exe -m %pipR%
|
%py% -m %pipR%
|
||||||
|
|
||||||
:: Run app
|
|
||||||
%LOCALAPPDATA%\Microsoft\WindowsApps\python.exe %run%
|
|
||||||
|
|
||||||
) ELSE (
|
) ELSE (
|
||||||
:: Check dependencies
|
:: Check dependencies
|
||||||
python.exe -m %pipR% > NUL
|
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
|
EXIT /b
|
||||||
|
|
Reference in a new issue