INSTALL(DIRECTORY geom model examples DESTINATION ${SHAPER_INSTALL_PYTHON_API})
INSTALL(FILES __init__.py DESTINATION ${SHAPER_INSTALL_PYTHON_API})
INSTALL(FILES __init__.py DESTINATION ${_pydir}/salome)
+INSTALL(FILES initConfig.py DESTINATION ${SHAPER_INSTALL_PYTHON_API})
# --------- Unit tests -----------
INCLUDE(UnitTest)
--- /dev/null
+"""This script inspects existing modules in SALOME and registrs them in
+Module reader
+"""
+
+import salome
+import SALOME_ModuleCatalog
+import ConfigAPI
+
+obj = salome.naming_service.Resolve('Kernel/ModulCatalog')
+catalog = obj._narrow(SALOME_ModuleCatalog.ModuleCatalog)
+aCorbaModules = catalog.GetComponentList()
+for aName in aCorbaModules:
+ ConfigAPI.Config_ModuleReader.addDependencyModule(aName)