22 lines
711 B
Batchfile
22 lines
711 B
Batchfile
@echo off
|
|
REM ================================================================
|
|
REM HundM_Fortna - Python Virtual Environment einrichten
|
|
REM ================================================================
|
|
|
|
call "%~dp0setenv.bat"
|
|
|
|
if not exist "%PROJECT%\.venv" (
|
|
echo Initialisiere Python virtual environment...
|
|
py -m venv "%PROJECT%\.venv" --upgrade-deps
|
|
echo Erfolgreich.
|
|
|
|
call "%PROJECT%\.venv\Scripts\activate.bat"
|
|
echo Installiere erforderliche Python Packages...
|
|
pip install -r "%PROJECT%\requirements.txt" -q
|
|
echo Erfolgreich.
|
|
deactivate
|
|
) else (
|
|
echo .venv existiert bereits - Abbruch.
|
|
echo Zum Neuaufsetzen .venv loeschen und install_py.bat erneut ausfuehren.
|
|
)
|