Files
2025-12-19 23:59:54 +01:00

17 lines
429 B
Python
Executable File

#!/usr/bin/env python3
import os
import sys
import subprocess
# Get the directory where this script is located
script_dir = os.path.dirname(os.path.abspath(__file__))
# Path to the venv python
venv_python = os.path.join(script_dir, 'venv', 'bin', 'python')
# Path to the actual server
server_py = os.path.join(script_dir, 'server.py')
# Execute the server with the venv python
os.execv(venv_python, [venv_python, server_py])