From b83db6830f6509d7b35161021cdc2ce741c97443 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 3 May 2011 16:02:33 +0000 Subject: [PATCH] 0021256: EDF STUDY: Python dump in a single file (continued) "import salome" in multyfile mode --- src/SMESH_I/SMESH_DumpPython.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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" -- 2.39.2