From 7436d5ff08430c783aa807eb7d8529a92ed53c71 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 3 May 2011 15:54:20 +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/SMESH_I/SMESH_DumpPython.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/SMESH_I/SMESH_DumpPython.cxx b/src/SMESH_I/SMESH_DumpPython.cxx index 02438ddcf..34650357d 100644 --- a/src/SMESH_I/SMESH_DumpPython.cxx +++ b/src/SMESH_I/SMESH_DumpPython.cxx @@ -730,8 +730,6 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl TCollection_AsciiString aScript; if( isMultiFile ) aScript += "def RebuildData(theStudy):"; - else - aScript += "theStudy = salome.myStudy"; aScript += "\n\t"; aScript += helper + "aFilterManager = " + aSMESHGen + ".CreateFilterManager()\n\t"; aScript += helper + "aMeasurements = " + aSMESHGen + ".CreateMeasurements()\n\t"; @@ -856,8 +854,8 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl } // set initial part of aSript - TCollection_AsciiString initPart = "import salome, SMESH, SALOMEDS\n"; - initPart += helper + "import " + aSmeshpy + "\n"; + TCollection_AsciiString initPart; + initPart += helper + "import " + aSmeshpy + ", SMESH, SALOMEDS\n"; if ( importGeom && isMultiFile ) { initPart += ("\n## import GEOM dump file ## \n" -- 2.39.2