Moved Gui and js folders into qml.qrc in preparation for the end
platform executable
This commit is contained in:
6
main.py
6
main.py
@@ -47,6 +47,8 @@ def publishContext():
|
||||
engine.rootContext().setContextProperty("bm", bm)
|
||||
engine.rootContext().setContextProperty("am", am)
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
#QResource.registerResource("rc_qml.py")
|
||||
app = QGuiApplication(sys.argv)
|
||||
@@ -60,9 +62,9 @@ if __name__ == "__main__":
|
||||
|
||||
|
||||
|
||||
qml_file = Path(__file__).resolve().parent / "Gui/main.qml"
|
||||
# qml_file = Path(__file__).resolve().parent / "Gui/main.qml"
|
||||
|
||||
#qml_file = ":/gui/main.qml"
|
||||
qml_file = "qrc:/Gui/main.qml"
|
||||
|
||||
config = ConfigLoader()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user