-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_unified.py
More file actions
53 lines (41 loc) · 1.36 KB
/
main_unified.py
File metadata and controls
53 lines (41 loc) · 1.36 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python3
"""
Unified RepoReadme Application
Main entry point for the unified professional developer suite.
Integrates GitHub analysis, README generation, CV creation, and LinkedIn optimization.
"""
import sys
import os
from pathlib import Path
# Add src directory to Python path
src_dir = Path(__file__).parent / 'src'
sys.path.insert(0, str(src_dir))
try:
from unified_gui import UnifiedRepoReadmeGUI
from utils.logger import get_logger
except ImportError as e:
print(f"Import error: {e}")
print("Trying alternative import...")
try:
from src.unified_gui import UnifiedRepoReadmeGUI
from src.utils.logger import get_logger
except ImportError as e2:
print(f"Alternative import also failed: {e2}")
print("Please ensure all dependencies are installed: pip install -r requirements.txt")
sys.exit(1)
def main():
"""Main entry point."""
logger = get_logger()
try:
logger.info("Starting Unified RepoReadme Professional Suite")
# Initialize and run the unified GUI
app = UnifiedRepoReadmeGUI()
app.run()
except Exception as e:
logger.error(f"Application failed to start: {e}")
import traceback
traceback.print_exc()
sys.exit(1)
logger.info("Application closed")
if __name__ == "__main__":
main()