]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PythonAPI/initConfig.py
Salome HOME
updated copyright message
[modules/shaper.git] / src / PythonAPI / initConfig.py
index 42a7917747a3487e197ec8d5d2fe7f0eccd2895e..2b97ca72675149e2d7e649a20c626245d1e88c08 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2020  CEA/DEN, EDF R&D
+# Copyright (C) 2014-2023  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -27,8 +27,6 @@ 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()
 for aName in aCorbaModules:
   ConfigAPI.Config_ModuleReader.addDependencyModule(aName)