From: eap Date: Tue, 3 May 2011 16:02:33 +0000 (+0000) Subject: 0021256: EDF STUDY: Python dump in a single file (continued) X-Git-Tag: V6_3_0b1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b83db6830f6509d7b35161021cdc2ce741c97443;p=modules%2Fsmesh.git 0021256: EDF STUDY: Python dump in a single file (continued) "import salome" in multyfile mode --- diff --git a/src/SMESH_I/SMESH_DumpPython.cxx b/src/SMESH_I/SMESH_DumpPython.cxx index 34650357d..63fd737e6 100644 --- a/src/SMESH_I/SMESH_DumpPython.cxx +++ b/src/SMESH_I/SMESH_DumpPython.cxx @@ -854,8 +854,10 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl } // set initial part of aSript - TCollection_AsciiString initPart; - initPart += helper + "import " + aSmeshpy + ", SMESH, SALOMEDS\n"; + TCollection_AsciiString initPart = "import "; + if ( isMultiFile ) + initPart += helper + "salome, "; + initPart += aSmeshpy + ", SMESH, SALOMEDS\n"; if ( importGeom && isMultiFile ) { initPart += ("\n## import GEOM dump file ## \n"