0021256: EDF STUDY: Python dump in a single file (continued)

if( isMultiFile )
     aScript += "def RebuildData(theStudy):";
-  else
-    aScript += "theStudy = salome.myStudy";
This commit is contained in:
eap 2011-05-03 15:55:02 +00:00
parent 54c20f308c
commit fe08cb5e34

View File

@ -584,8 +584,7 @@ TCollection_AsciiString GEOM_Engine::DumpPython(int theDocID,
aScript += "import SALOMEDS\n\n"; aScript += "import SALOMEDS\n\n";
if( isMultiFile ) if( isMultiFile )
aScript += "def RebuildData(theStudy):"; aScript += "def RebuildData(theStudy):";
else
aScript += "theStudy = salome.myStudy";
aScript += "\n\tgeompy.init_geom(theStudy)\n"; aScript += "\n\tgeompy.init_geom(theStudy)\n";
AddTextures(theDocID, aScript); AddTextures(theDocID, aScript);