error_string = ""
if len(self.errors) > 0:
error_string = "global errors:\n"
- error_string += '\n'.join(errors)
+ error_string += '\n'.join(self.errors)
else:
properties = self.getFunctionProperties(fname)
if properties is None:
_resourceManager = salome.lcc.getResourcesManager()
else:
catalog_path = os.environ.get("USER_CATALOG_RESOURCES_FILE", "")
+ if not os.path.isfile(catalog_path):
+ salome_path = os.environ.get("ROOT_SALOME_INSTALL", "")
+ catalog_path = os.path.join(salome_path, "CatalogResources.xml")
+ if not os.path.isfile(catalog_path):
+ catalog_path = ""
_resourceManager = pylauncher.ResourcesManager_cpp(catalog_path)
return _resourceManager