From ada7b89467e38dfcc8ea822409136b0c1ee04d30 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Sat, 23 Jan 2021 05:36:03 +0100 Subject: [PATCH] SHAPER : On the road for SHAPER management -> ModuleCatalog needed by SHAPER -> propose it into salome --- src/PythonAPI/initConfig.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -- 2.39.2