new folder structure
This commit is contained in:
17
run_server.py
Normal file
17
run_server.py
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/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)
|
||||
Reference in New Issue
Block a user