fixed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user