]> SALOME platform Git repositories - modules/shaper.git/blob - src/PythonAPI/initConfig.py
Salome HOME
Merge branch 'master' into cgt/devCEA
[modules/shaper.git] / src / PythonAPI / initConfig.py
1 """This script inspects existing modules in SALOME and registrs them in
2 Module reader
3 """
4
5 import salome
6 import SALOME_ModuleCatalog
7 import ConfigAPI
8
9 # needed on immediate start of SHAPER from SALOME: salome.naming_service is not initialized then
10 salome.salome_init()
11 obj = salome.naming_service.Resolve('Kernel/ModulCatalog')
12 catalog = obj._narrow(SALOME_ModuleCatalog.ModuleCatalog)
13 aCorbaModules = catalog.GetComponentList()
14 for aName in aCorbaModules:
15   ConfigAPI.Config_ModuleReader.addDependencyModule(aName)