Skip to content

Commit 29bc415

Browse files
committed
added path to EasyApp
1 parent 3aa73b6 commit 29bc415

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

EasyReflectometryApp/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@
4343
if INSTALLER:
4444
path_main_qml = QUrl.fromLocalFile(CURRENT_DIR / 'EasyReflectometryApp' / 'Gui' / 'ApplicationWindow.qml')
4545
engine.addImportPath(QUrl.fromLocalFile(CURRENT_DIR / 'EasyReflectometryApp').toString())
46+
engine.addImportPath(QUrl.fromLocalFile(EASYAPP_DIR).toString())
4647
console.debug('Paths added where QML searches for components')
4748
else:
4849
path_main_qml = path_main_qml = CURRENT_DIR / 'Gui' / 'ApplicationWindow.qml' # Running locally
49-
engine.addImportPath(EASYAPP_DIR)
5050
engine.addImportPath(CURRENT_DIR)
51+
engine.addImportPath(EASYAPP_DIR)
5152
console.debug('Paths added where QML searches for components')
5253

5354
engine.load(path_main_qml)

0 commit comments

Comments
 (0)