From fe08cb5e3488bc767ab4057b4434f5ff00582d78 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 3 May 2011 15:55:02 +0000 Subject: [PATCH] 0021256: EDF STUDY: Python dump in a single file (continued) if( isMultiFile ) aScript += "def RebuildData(theStudy):"; - else - aScript += "theStudy = salome.myStudy"; --- src/GEOM/GEOM_Engine.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.39.2