This repository has been archived on 2023-09-02. You can view files and clone it, but cannot push or open issues or pull requests.
csh/run.bat
2023-04-03 03:03:32 +02:00

31 lines
729 B
Batchfile

@ECHO off
:: Check python installation
python.exe --version > NUL
:: Clean potential error or python version
CLS
IF errorlevel 1 (
ECHO Installation of Python not found, installation...
:: Install Python 3.11 from MS Store
ECHO Y | winget install -he 9NRWMJP3717K
ECHO Download and installation of dependencies...
:: Install dependencies
%LOCALAPPDATA%\Microsoft\WindowsApps\python.exe -m pip install -r .\requirements.txt
:: Run app
%LOCALAPPDATA%\Microsoft\WindowsApps\python.exe .\main.py
) ELSE (
:: Check dependencies
python.exe -m pip install -r .\requirements.txt > NUL
:: Run app
python.exe .\main.py --list=1,2,3,4,5,7,8
)
EXIT /b