#!/bin/bash # pyPhotoAlbum launch script # Runs the application from the project directory using the local venv # Get the directory where this script is located SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" VENV_DIR="$SCRIPT_DIR/venv" # Check if venv exists if [ ! -d "$VENV_DIR" ]; then echo "Error: Virtual environment not found at $VENV_DIR" echo "Please run install-debian.sh first to set up the environment." exit 1 fi # Activate venv and run the application source "$VENV_DIR/bin/activate" exec python "$SCRIPT_DIR/pyPhotoAlbum/main.py" "$@"