]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0021256: EDF STUDY: Python dump in a single file (continued)
authoreap <eap@opencascade.com>
Tue, 3 May 2011 15:55:02 +0000 (15:55 +0000)
committereap <eap@opencascade.com>
Tue, 3 May 2011 15:55:02 +0000 (15:55 +0000)
   if( isMultiFile )
     aScript += "def RebuildData(theStudy):";
-  else
-    aScript += "theStudy = salome.myStudy";

src/GEOM/GEOM_Engine.cxx

index 2555e1ab92d65e2e1a62aa6f90968125e36f985d..5618f5b3a6b99edaa3613a127cc3974f5648ce69 100644 (file)
@@ -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);