-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·24 lines (21 loc) · 1017 Bytes
/
run.sh
File metadata and controls
executable file
·24 lines (21 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# ─────────────────────────────────────────────────────────────────
# run.sh — Launcher for the On-Screen Keyboard app
#
# Usage:
# ./run.sh
#
# This script activates the project's virtual environment
# and launches the application.
# ─────────────────────────────────────────────────────────────────
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VENV_DIR="$SCRIPT_DIR/venv"
# Check venv exists
if [ ! -d "$VENV_DIR" ]; then
echo "Error: Virtual environment not found at $VENV_DIR"
echo "Create it with: python3 -m venv --system-site-packages venv && source venv/bin/activate && pip install -r requirements.txt"
exit 1
fi
# Activate venv and run
source "$VENV_DIR/bin/activate"
python3 "$SCRIPT_DIR/main.py" "$@"