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:
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
# -------------------------------------
|
||||
# Wo ist das Programm hinkopiert
|
||||
export PLATZ="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
echo $PLATZ
|
||||
# -------------------------------------
|
||||
|
||||
# Umgebung setzen
|
||||
export PLATZ_BIN=$PLATZ/bin
|
||||
export PLATZ_CFG=$PLATZ/cfg
|
||||
export PLATZ_LIBS=$PLATZ/libs
|
||||
export PLATZ_WORK=$PLATZ/work
|
||||
export PLATZ_IN=$PLATZ/in
|
||||
export PLATZ_OUT=$PLATZ/out
|
||||
|
||||
# Wo sind die Pythonskripte ?
|
||||
case ":$PYTHONPATH:" in
|
||||
*":$PLATZ_LIBS:"*) ;;
|
||||
*) export PYTHONPATH=$PYTHONPATH:$PLATZ_LIBS ;;
|
||||
esac
|
||||
|
||||
mkdir -p "$PLATZ_WORK"
|
||||
mkdir -p "$PLATZ_OUT"
|
||||
|
||||
echo PLATZ=$PLATZ
|
||||
echo PLATZ_BIN=$PLATZ_BIN
|
||||
echo PLATZ_CFG=$PLATZ_CFG
|
||||
echo PLATZ_LIBS=$PLATZ_LIBS
|
||||
echo PLATZ_WORK=$PLATZ_WORK
|
||||
echo PLATZ_IN=$PLATZ_IN
|
||||
echo PLATZ_OUT=$PLATZ_OUT
|
||||
echo PYTHONPATH=$PYTHONPATH
|
||||
Reference in New Issue
Block a user