Shellskripte auch angepasst
This commit is contained in:
+17
-3
@@ -1,4 +1,18 @@
|
||||
#!/bin/bash
|
||||
source manage_interpreter.sh activate_interpreter
|
||||
python "$PROJECT_LIB/routing.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.routing "$@"
|
||||
PYTHON_EXIT=$?
|
||||
|
||||
popd > /dev/null
|
||||
source "$SCRIPT_DIR/manage_interpreter.sh" deactivate
|
||||
exit $PYTHON_EXIT
|
||||
|
||||
Reference in New Issue
Block a user