Skip to content

Commit 3aa73b6

Browse files
committed
trying to get Gui path to be accessible in Qt
1 parent 78f67a4 commit 3aa73b6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

EasyReflectometryApp/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@
4141
console.debug('Backend class is registered to be accessible from QML via the name PyBackend')
4242

4343
if INSTALLER:
44-
path_main_qml = QUrl.fromLocalFile(
45-
CURRENT_DIR / 'EasyReflectometryApp' / 'Gui' / 'ApplicationWindow.qml'
46-
) # Running from installer
47-
engine.addImportPath(QUrl.fromLocalFile(CURRENT_DIR).toString())
44+
path_main_qml = QUrl.fromLocalFile(CURRENT_DIR / 'EasyReflectometryApp' / 'Gui' / 'ApplicationWindow.qml')
45+
engine.addImportPath(QUrl.fromLocalFile(CURRENT_DIR / 'EasyReflectometryApp').toString())
4846
console.debug('Paths added where QML searches for components')
4947
else:
5048
path_main_qml = path_main_qml = CURRENT_DIR / 'Gui' / 'ApplicationWindow.qml' # Running locally

0 commit comments

Comments
 (0)