]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021256: EDF STUDY: Python dump in a single file (continued)
authoreap <eap@opencascade.com>
Tue, 3 May 2011 16:02:33 +0000 (16:02 +0000)
committereap <eap@opencascade.com>
Tue, 3 May 2011 16:02:33 +0000 (16:02 +0000)
   "import salome" in multyfile mode

src/SMESH_I/SMESH_DumpPython.cxx

index 34650357d5d8f44672ed4f23427e21af7d70a467..63fd737e655c9a769f8bbb711ab0b6070895d661 100644 (file)
@@ -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"