forked from Tiny-Walnut-Games/the-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_stat7.py
More file actions
46 lines (38 loc) · 1.27 KB
/
start_stat7.py
File metadata and controls
46 lines (38 loc) · 1.27 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
#!/usr/bin/env python3
"""
STAT7 Visualization System - Quick Start Launcher
Simply run this file from the project root to start the visualization system.
"""
import os
import sys
import subprocess
def main():
"""Launch the STAT7 visualization system."""
print("🚀 STAT7 Visualization System")
print("=" * 40)
# Check if web directory exists
web_dir = os.path.join(os.path.dirname(__file__), 'web')
if not os.path.exists(web_dir):
print("❌ Web directory not found!")
print(" Expected:", web_dir)
return 1
# Check if launcher exists
launcher_path = os.path.join(web_dir, 'launchers', 'run_stat7_visualization.py')
if not os.path.exists(launcher_path):
print("❌ Launcher not found!")
print(" Expected:", launcher_path)
return 1
print("✅ Found STAT7 visualization system")
print("🚀 Starting visualization system...")
# Run the visualization system
try:
subprocess.run([sys.executable, launcher_path], check=True)
except subprocess.CalledProcessError as e:
print(f"❌ Launcher failed: {e}")
return 1
except KeyboardInterrupt:
print("\n👋 Stopped by user")
return 0
return 0
if __name__ == "__main__":
sys.exit(main())