X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOM_SWIG%2FBREPPluginBuilder.py;h=2b096d5d7f4cc8d28ae85ee1e8b1ac1386691595;hb=4048b73d92cce1ac297507536a8bb8a4a6f6eb55;hp=11a25726d0acb9a4dba2a05c31afce932df4e37c;hpb=ec168c32f86cab8199030ec4e8e2b1cbd5e42670;p=modules%2Fgeom.git diff --git a/src/GEOM_SWIG/BREPPluginBuilder.py b/src/GEOM_SWIG/BREPPluginBuilder.py index 11a25726d..2b096d5d7 100644 --- a/src/GEOM_SWIG/BREPPluginBuilder.py +++ b/src/GEOM_SWIG/BREPPluginBuilder.py @@ -1,5 +1,5 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2014-2016 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2014-2020 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -24,7 +24,7 @@ from GEOM import IBREPOperations __libraryName__ = "BREPPluginEngine" def GetBREPPluginOperations(self): - anOp = self.GetPluginOperations(self.myStudyId, __libraryName__) + anOp = self.GetPluginOperations(__libraryName__) return anOp._narrow(IBREPOperations) ## Export the given shape into a file with given name in BREP format. @@ -42,7 +42,7 @@ def ExportBREP(self, theObject, theFileName): anOp = GetBREPPluginOperations(self) anOp.ExportBREP(theObject, theFileName) if anOp.IsDone() == 0: - raise RuntimeError, "Export : " + anOp.GetErrorCode() + raise RuntimeError("Export : " + anOp.GetErrorCode()) pass pass