31 lines
655 B
Bash
Executable File
31 lines
655 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Trimble Geodesy Tool - Run Script (Linux/macOS)
|
|
# Aktiviert das Virtual Environment und startet das Programm
|
|
#
|
|
|
|
# Wechsle ins Script-Verzeichnis
|
|
cd "$(dirname "$0")"
|
|
|
|
# Prüfe ob Virtual Environment existiert
|
|
if [ ! -d "venv" ]; then
|
|
echo "❌ Fehler: Virtual Environment nicht gefunden."
|
|
echo ""
|
|
echo " Bitte zuerst setup.sh ausführen:"
|
|
echo " ./setup.sh"
|
|
echo ""
|
|
exit 1
|
|
fi
|
|
|
|
# Aktiviere Virtual Environment
|
|
source venv/bin/activate
|
|
|
|
if [ $? -ne 0 ]; then
|
|
echo "❌ Fehler beim Aktivieren des Virtual Environments"
|
|
exit 1
|
|
fi
|
|
|
|
# Starte das Programm
|
|
echo "Starte Trimble Geodesy Tool..."
|
|
python3 main.py
|