-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_manager.command
More file actions
executable file
·59 lines (51 loc) · 1.76 KB
/
start_manager.command
File metadata and controls
executable file
·59 lines (51 loc) · 1.76 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
51
52
53
54
55
56
57
58
59
#\!/bin/bash
# スクリプトのあるディレクトリに移動
cd "$(dirname "$0")"
# Paper Manager GUI Startup Script (macOS/Linux)
echo "========================================"
echo " Paper Manager GUI Startup"
echo "========================================"
echo
# Check if virtual environment exists
if [ -d "paper_manager_env" ]; then
echo "✅ Activating virtual environment..."
source paper_manager_env/bin/activate
echo "🐍 Virtual environment activated: $VIRTUAL_ENV"
else
echo "⚠️ Virtual environment not found."
echo "❓ Do you want to create one? (y/n)"
read -r create_venv
if [[ $create_venv =~ ^[Yy]$ ]]; then
echo "📦 Creating virtual environment..."
python3 -m venv paper_manager_env
source paper_manager_env/bin/activate
echo "✅ Virtual environment created"
echo "📦 Installing GUI dependencies..."
pip install streamlit plotly PyYAML python-dotenv pydantic requests
else
echo "Using system Python"
fi
fi
echo
echo "🚀 Starting Paper Manager GUI..."
echo "📱 Browser will open automatically at http://localhost:8501"
echo "🛑 Press Ctrl+C to stop the server"
echo
# Check configuration status
echo "🔍 Checking configuration..."
python check_config.py
if [ $? -ne 0 ]; then
echo
echo "==============================================="
echo " Configuration Required"
echo "==============================================="
echo
echo "Your Paper Manager is not configured yet."
echo "The setup wizard will appear when the GUI starts."
echo
read -p "Press Enter to start GUI with setup wizard..."
else
echo "✅ Configuration OK - Starting main application..."
fi
# Start the GUI
python start_manager.py