17 lines
402 B
Python
17 lines
402 B
Python
#!/usr/bin/env python3
|
|
|
|
import os
|
|
import sys
|
|
import subprocess
|
|
|
|
# Change to the server directory
|
|
server_dir = os.path.join(os.path.dirname(__file__), 'src', 'server')
|
|
os.chdir(server_dir)
|
|
|
|
# Add parent directory to Python path
|
|
sys.path.insert(0, '..')
|
|
|
|
# Run the app
|
|
if __name__ == '__main__':
|
|
# Use subprocess to run the app properly
|
|
subprocess.run([sys.executable, 'app.py'], cwd=server_dir) |