#!/usr/bin/env python3 import os import sys # Find the bundle path (2 levels up from this script) script_path = os.path.abspath(__file__) server_dir = os.path.dirname(script_path) bundle_dir = os.path.dirname(server_dir) # Add the venv site-packages to Python path venv_site_packages = os.path.join(server_dir, 'venv', 'lib', 'python3.13', 'site-packages') sys.path.insert(0, venv_site_packages) # Change to the bundle directory os.chdir(bundle_dir) # Import and run the server module sys.path.insert(0, server_dir) import server