From: Anthony Geay Date: Sat, 23 Jan 2021 04:36:03 +0000 (+0100) Subject: SHAPER : On the road for SHAPER management -> ModuleCatalog needed by SHAPER -> propo... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ada7b89467e38dfcc8ea822409136b0c1ee04d30;p=modules%2Fshaper.git SHAPER : On the road for SHAPER management -> ModuleCatalog needed by SHAPER -> propose it into salome --- diff --git a/src/PythonAPI/initConfig.py b/src/PythonAPI/initConfig.py index 42a791774..bc611a136 100644 --- a/src/PythonAPI/initConfig.py +++ b/src/PythonAPI/initConfig.py @@ -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)