Use setenv in launcher scripts, add requirements.txt and missing .sh scripts

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>
This commit is contained in:
Michael Stangl
2026-07-09 11:57:05 +02:00
parent bd87b3df46
commit e8911df7e9
16 changed files with 246 additions and 66 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
# ================================================================
# Python Virtual Environment einrichten
# ================================================================
source "$(dirname "${BASH_SOURCE[0]}")/setenv.sh"
if [ ! -d "$PLATZ/.venv" ]; then
echo "Initialisiere Python virtual environment..."
python3 -m venv "$PLATZ/.venv" --upgrade-deps
echo "Erfolgreich."
source "$PLATZ/.venv/bin/activate"
echo "Installiere erforderliche Python Packages..."
pip install -r "$PLATZ/requirements.txt" -q
echo "Erfolgreich."
deactivate
else
echo "Erforderliche Python Packages bereits installiert!"
fi