-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (20 loc) · 660 Bytes
/
main.py
File metadata and controls
29 lines (20 loc) · 660 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
"""
main.py - The main entry point. Ensures proper packaging via PyInstaller and launches the app.
"""
import sys
import os
# Ensure the root directory and the util module are reachable
if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
root_dir = sys._MEIPASS
else:
root_dir = os.path.dirname(os.path.abspath(__file__))
if root_dir not in sys.path:
sys.path.insert(0, root_dir)
from PyQt6.QtWidgets import QApplication
from main.quickadb import QuickADBApp
def main():
app = QApplication(sys.argv)
main_window = QuickADBApp()
sys.exit(app.exec())
if __name__ == "__main__":
main()