diff --git a/main.py b/main.py index 9d4a3e0..4b87309 100644 --- a/main.py +++ b/main.py @@ -8,8 +8,14 @@ optional multi-user server synchronization. """ import sys +import multiprocessing from pathlib import Path +# CRITICAL: Must be called before anything else on Windows with PyInstaller +# This prevents the infinite spawning loop when the frozen executable runs +if sys.platform == 'win32': + multiprocessing.freeze_support() + # Add project root to Python path project_root = Path(__file__).parent sys.path.insert(0, str(project_root))