Hi out there,
I’m trying to build a SFOS app using QtQuick, Silica and some Python-Modules for the first time now.
My Project has the following structure:
/project
/qml
/pages
page1.qml
page2.qml
/cover
cover.qml
main.qml
/icons
/translation
/python
/module1
module1.py
/module2
module2.py
When I try to import the python modules in main.qml like this
addImportPath(Qt.resolvedUrl(’…/python/module1/’));
importModule(‘module1’, function () {});
the IDE tells me “Unhandled PyOtherSide error: Cannot import module: module1 (No module named ‘module1’)”.
Could anyone help me out, please?
Thanks in advance,
BGK