32 lines
705 B
Python
32 lines
705 B
Python
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
from PySide6.QtWidgets import QApplication
|
|
|
|
APP_DIR = Path(__file__).resolve().parent
|
|
if str(APP_DIR) not in sys.path:
|
|
sys.path.insert(0, str(APP_DIR))
|
|
|
|
try:
|
|
from .icons import lucide_icon
|
|
from .main_window import MainWindow
|
|
except ImportError:
|
|
from icons import lucide_icon
|
|
from main_window import MainWindow
|
|
|
|
|
|
def main() -> int:
|
|
app = QApplication(sys.argv)
|
|
app_icon = lucide_icon("git-branch", "#e5e7eb", 256)
|
|
app.setWindowIcon(app_icon)
|
|
window = MainWindow()
|
|
window.setWindowIcon(app_icon)
|
|
window.show()
|
|
return app.exec()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|