Add parent directory to QML import path
This commit is contained in:
parent
844c133017
commit
a8e0bec381
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue