e8911df7e9
platz.bat/platz.sh now derive PLATZ via setenv instead of hardcoded paths, matching the Standard Programm Template already applied to setenv/install_py/activate_venv/get_cmd. Added the missing .sh counterparts to those .bat scripts, an empty requirements.txt for install_py to install (project only uses the stdlib), and ignore entries for .venv/, out/, .vscode/, *.swp. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
22 lines
633 B
Batchfile
22 lines
633 B
Batchfile
@echo off
|
|
REM ================================================================
|
|
REM TEST - Python Virtual Environment einrichten
|
|
REM ================================================================
|
|
|
|
call "%~dp0setenv.bat"
|
|
|
|
if not exist "%PLATZ%\.venv" (
|
|
echo Initialisiere Python virtual environment...
|
|
py -m venv "%PLATZ%\.venv" --upgrade-deps
|
|
echo Erfolgreich.
|
|
|
|
call "%PLATZ%\.venv\Scripts\activate.bat"
|
|
echo Installiere erforderliche Python Packages...
|
|
pip install -r "%PLATZ%\requirements.txt" -q
|
|
echo Erfolgreich.
|
|
deactivate
|
|
) else (
|
|
echo Erforderliche Python Packages bereits installiert!
|
|
)
|
|
|