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

"import salome" in multyfile mode
This commit is contained in:
eap 2011-05-03 16:02:33 +00:00
parent 7436d5ff08
commit b83db6830f

View 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"