continue;
}
+ PyObjWrapper pKeys = PyDict_Keys(unpackedModules);
// Iterate all the components (modules) for this extension
- for (Py_ssize_t pos = 0; pos < PyList_Size(unpackedModules); ++pos)
+ for (Py_ssize_t pos = 0; pos < PyDict_Size(unpackedModules); ++pos)
{
- auto moduleNameItem = PyList_GetItem(unpackedModules, pos);
+ auto moduleNameItem = PyList_GetItem(pKeys, pos);
+ auto interactiveItem = PyDict_GetItem(unpackedModules, moduleNameItem);
+
QString moduleName(PyUnicode_AsUTF8(moduleNameItem));
SCRUTE(moduleName.toStdString());
-
- addUserModule(moduleName, SalomeExtDir, true);
+ addUserModule(moduleName, SalomeExtDir, PyObject_IsTrue(interactiveItem));
}
// Add an extension to GUI