-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
31 lines (21 loc) · 664 Bytes
/
Copy pathmain.py
File metadata and controls
31 lines (21 loc) · 664 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
26
27
28
29
30
31
#!/usr/bin/env python3
"""
Port Manager - Main Entry Point
A desktop application for managing network ports with intelligent recommendations.
"""
import sys
def check_python_version():
"""Ensure Python 3.10+ is being used."""
if sys.version_info < (3, 10):
print("Error: Python 3.10 or higher is required.")
print(f"Current version: {sys.version}")
sys.exit(1)
def main():
"""Main entry point for the application."""
check_python_version()
# Import here to ensure version check happens first
from src.app import PortManagerApp
app = PortManagerApp()
app.run()
if __name__ == "__main__":
main()