]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
SHAPER : On the road for SHAPER management -> ModuleCatalog needed by SHAPER -> propo...
authorAnthony Geay <anthony.geay@edf.fr>
Sat, 23 Jan 2021 04:36:03 +0000 (05:36 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Sat, 23 Jan 2021 04:36:03 +0000 (05:36 +0100)
src/PythonAPI/initConfig.py

index 42a7917747a3487e197ec8d5d2fe7f0eccd2895e..bc611a136c43d0f1aeea4d979a9204a1e4d14291 100644 (file)
@@ -27,8 +27,7 @@ import ConfigAPI
 
 # needed on immediate start of SHAPER from SALOME: salome.naming_service is not initialized then
 salome.salome_init()
-obj = salome.naming_service.Resolve('Kernel/ModulCatalog')
-catalog = obj._narrow(SALOME_ModuleCatalog.ModuleCatalog)
-aCorbaModules = catalog.GetComponentList()
+aCorbaModules = salome.modulcat.GetComponentList()
+print(aCorbaModules)
 for aName in aCorbaModules:
   ConfigAPI.Config_ModuleReader.addDependencyModule(aName)