-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
25 lines (19 loc) · 777 Bytes
/
main.py
File metadata and controls
25 lines (19 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env python3
"""
Medical Assistant Application Entry Point
This file serves as the main entry point for the Medical Assistant application.
It sets up the Python path and imports the actual main function from the core module.
"""
import sys
import os
# Disable GameController discovery to prevent macOS Tahoe crash
# in GameControllerUI during Tk event loop autorelease pool cleanup.
# Must be set before AppKit/Tkinter initialization.
if sys.platform == 'darwin':
os.environ.setdefault('GC_DISABLE_GAME_CONTROLLER_DISCOVERY', '1')
# Add the src directory to the Python path
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), 'src'))
# Import and run the main function
from core.main import main
if __name__ == "__main__":
main()