-# Copyright (C) 2011-2016 EDF R&D
+# Copyright (C) 2011-2019 EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
import SALOME_ModuleCatalog
catalog = obj._narrow(SALOME_ModuleCatalog.ModuleCatalog)
if not catalog:
- raise RuntimeError, "Can't accesss module catalog"
+ raise RuntimeError("Can't accesss module catalog")
filename = getSpadderCatalogFilename()
catalog.ImportXmlCatalogFile(filename)
from salome.kernel import services
- print "The list of SALOME components is now:"
- print services.getComponentList()
+ print("The list of SALOME components is now:")
+ print(services.getComponentList())