Shellskripte auch angepasst
This commit is contained in:
+17
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user