Shellskripte auch angepasst

This commit is contained in:
2026-01-28 21:24:40 +01:00
parent e087b65359
commit ba02f69f0f
9 changed files with 132 additions and 34 deletions
+17 -4
View File
@@ -1,6 +1,19 @@
#!/bin/bash
# getpositions.sh
#!/bin/bash
source manage_interpreter.sh activate_interpreter
python "$PROJECT_LIB/getpositions.py" "$@"
source manage_interpreter.sh deactivate_interpreter
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/manage_interpreter.sh" activate
if [ $? -ne 0 ]; then
echo "ERROR: Failed to activate Python environment"
exit 1
fi
pushd "$PROJECT" > /dev/null
"$VIRTUAL_ENV/bin/python" -m lib.getpositions "$@"
PYTHON_EXIT=$?
popd > /dev/null
source "$SCRIPT_DIR/manage_interpreter.sh" deactivate
exit $PYTHON_EXIT