Add parent directory to QML import path

This commit is contained in:
Thomas Perl 2013-09-24 23:31:19 +02:00
parent 844c133017
commit a8e0bec381

View file

@ -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;