diff --git a/src/qpython_priv.cpp b/src/qpython_priv.cpp index e569336..31eca26 100644 --- a/src/qpython_priv.cpp +++ b/src/qpython_priv.cpp @@ -652,7 +652,7 @@ QPythonPriv::instance() QString QPythonPriv::importFromQRC(const char *module, const QString &filename) { - PyObjectRef sys_modules(PySys_GetObject((char *)"modules"), true); + PyObjectRef sys_modules(PySys_GetObject((char *)"modules")); if (!PyMapping_Check(sys_modules.borrow())) { return QString("sys.modules is not a mapping object"); }