File size: 613 Bytes
c99df4c | 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 | import sys
import os
# Add project root to sys.path to ensure imports work
# We want the parent of 'src' (project root) in sys.path so 'import src.xxx' works
current_dir = os.path.dirname(os.path.abspath(__file__))
project_root = os.path.dirname(current_dir)
sys.path.append(project_root)
from PyQt6.QtWidgets import QApplication
from src.ui.main_window import MainWindow
def main():
app = QApplication(sys.argv)
# Optional: Set a dark theme/palette here
window = MainWindow()
window.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()
|