alle Default files rein
This commit is contained in:
23
bin/activate_venv.sh
Normal file
23
bin/activate_venv.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
# ================================================================
|
||||
# PLANTPLAN - Python Virtual Environment aktivieren
|
||||
# ================================================================
|
||||
# Dieses Skript muss gesourct werden: source bin/activate_venv.sh
|
||||
# ================================================================
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
source "$SCRIPT_DIR/setenv.sh"
|
||||
|
||||
if [ ! -d "$PROJECT/.venv" ]; then
|
||||
echo "FEHLER: Virtual environment nicht gefunden."
|
||||
echo "Bitte zuerst bin/install_py.sh ausfuehren."
|
||||
return 1
|
||||
fi
|
||||
|
||||
source "$PROJECT/.venv/bin/activate"
|
||||
echo "Virtuelle Umgebung aktiviert."
|
||||
echo "Python-Version:"
|
||||
python --version
|
||||
echo ""
|
||||
echo "Installierte Pakete:"
|
||||
pip list
|
||||
Reference in New Issue
Block a user