This commit is contained in:
2025-11-11 14:22:21 +01:00
parent 1075a91eac
commit 760a458e66
4 changed files with 19 additions and 23 deletions

View File

@@ -15,7 +15,11 @@ import sys
from dotenv import load_dotenv
# Add backend directory to path for importing tracking service
backend_dir = Path(__file__).parent.parent / 'backend'
# Check if running in Docker (backend is at /app/backend) or locally (../backend)
if Path('/app/backend').exists():
backend_dir = Path('/app/backend')
else:
backend_dir = Path(__file__).parent.parent / 'backend'
sys.path.insert(0, str(backend_dir))
# Import tracking modules