From: eap Date: Tue, 3 May 2011 15:55:02 +0000 (+0000) Subject: 0021256: EDF STUDY: Python dump in a single file (continued) X-Git-Tag: V6_3_0b1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fe08cb5e3488bc767ab4057b4434f5ff00582d78;p=modules%2Fgeom.git 0021256: EDF STUDY: Python dump in a single file (continued) if( isMultiFile ) aScript += "def RebuildData(theStudy):"; - else - aScript += "theStudy = salome.myStudy"; --- diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx index 2555e1ab9..5618f5b3a 100644 --- a/src/GEOM/GEOM_Engine.cxx +++ b/src/GEOM/GEOM_Engine.cxx @@ -584,8 +584,7 @@ TCollection_AsciiString GEOM_Engine::DumpPython(int theDocID, aScript += "import SALOMEDS\n\n"; if( isMultiFile ) aScript += "def RebuildData(theStudy):"; - else - aScript += "theStudy = salome.myStudy"; + aScript += "\n\tgeompy.init_geom(theStudy)\n"; AddTextures(theDocID, aScript);