-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·50 lines (41 loc) · 1.32 KB
/
Copy pathrun.sh
File metadata and controls
executable file
·50 lines (41 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# SCE Question App Runner Script
# This script sets up and runs the SCE Question application on Unix-like systems
echo "=================================================="
echo "SCE Question App Setup & Runner"
echo "=================================================="
# Change to script directory
cd "$(dirname "$0")"
# Check if Python 3 is available
if ! command -v python3 &> /dev/null; then
echo "Error: Python 3 is required but not installed"
exit 1
fi
echo "✓ Python 3 detected"
# Create virtual environment if it doesn't exist
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
if [ $? -ne 0 ]; then
echo "Error: Failed to create virtual environment"
exit 1
fi
echo "✓ Virtual environment created"
else
echo "✓ Virtual environment found"
fi
# Activate virtual environment and install dependencies
echo "Installing dependencies..."
source venv/bin/activate
pip install -r requirements.txt
if [ $? -ne 0 ]; then
echo "Error: Failed to install dependencies"
exit 1
fi
echo "✓ Dependencies installed successfully"
echo ""
echo "=================================================="
echo "Setup complete! Starting application..."
echo "=================================================="
# Run the application
python src/gui_app.py