Skip to content

Commit b252032

Browse files
fix: use pathlib in macOS
1 parent 9d009b1 commit b252032

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
from PySide6.QtCore import QObject, Slot
22
from PySide6.QtWidgets import QApplication
3-
from RinUI import RinUIWindow, BackdropEffect, Theme
3+
from pathlib import Path
4+
from RinUI import RinUIWindow, Theme
45
import sys
5-
# from PySide6.QtCore import
66

77

88
class IconLib(RinUIWindow):
99
def __init__(self):
10-
super().__init__("assets/qml/main.qml")
11-
self.setIcon("assets/images/logo.png")
10+
super().__init__(Path(__file__).resolve().parent / "assets" / "qml" / "main.qml")
11+
self.setIcon((Path(__file__).parent / "assets" / "images" / "logo.png").as_posix())
1212
# register backend
1313
self.backend = IconLibBackend()
1414
self.engine.rootContext().setContextProperty("Backend", self.backend)

0 commit comments

Comments
 (0)