From a8e0bec381dd283406ded1b8a1969412f3427213 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Tue, 24 Sep 2013 23:31:19 +0200 Subject: [PATCH] Add parent directory to QML import path --- qml/Main.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qml/Main.qml b/qml/Main.qml index 30b550f..9ba81ad 100644 --- a/qml/Main.qml +++ b/qml/Main.qml @@ -70,6 +70,9 @@ Item { setHandler('download-progress', pgst.downloadProgress); setHandler('downloaded', pgst.downloaded); + var path = Qt.resolvedUrl('..').substr('file://'.length); + addImportPath(path); + // Load the Python side of things importModule('main', function() { pgst.ready = true;