mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-15 03:43:07 +05:00
0021256: EDF STUDY: Python dump in a single file (continued)
if( isMultiFile ) aScript += "def RebuildData(theStudy):"; - else - aScript += "theStudy = salome.myStudy";
This commit is contained in:
parent
07a37cb49f
commit
7436d5ff08
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user