mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 23:04:20 +05:00
"import python files corresponding to plugins" is not needed (since long time)
This commit is contained in:
parent
19d01592ba
commit
708660afc3
@ -881,15 +881,16 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl
|
|||||||
aScript += helper + "aFilterManager = " + aSMESHGen + ".CreateFilterManager()\n\t";
|
aScript += helper + "aFilterManager = " + aSMESHGen + ".CreateFilterManager()\n\t";
|
||||||
aScript += helper + "aMeasurements = " + aSMESHGen + ".CreateMeasurements()\n\t";
|
aScript += helper + "aMeasurements = " + aSMESHGen + ".CreateMeasurements()\n\t";
|
||||||
|
|
||||||
|
// This is not needed since entering a plug-in system to smesh.py
|
||||||
// import python files corresponding to plugins
|
// import python files corresponding to plugins
|
||||||
set<string> moduleNameSet;
|
// set<string> moduleNameSet;
|
||||||
map<string, GenericHypothesisCreator_i*>::iterator hyp_creator = myHypCreatorMap.begin();
|
// map<string, GenericHypothesisCreator_i*>::iterator hyp_creator = myHypCreatorMap.begin();
|
||||||
for ( ; hyp_creator != myHypCreatorMap.end(); ++hyp_creator ) {
|
// for ( ; hyp_creator != myHypCreatorMap.end(); ++hyp_creator ) {
|
||||||
string moduleName = hyp_creator->second->GetModuleName();
|
// string moduleName = hyp_creator->second->GetModuleName();
|
||||||
bool newModule = moduleNameSet.insert( moduleName ).second;
|
// bool newModule = moduleNameSet.insert( moduleName ).second;
|
||||||
if ( newModule )
|
// if ( newModule )
|
||||||
aScript += helper + "\n\t" + "from salome." + (char*) moduleName.c_str() + " import " + (char*) moduleName.c_str() +"Builder";
|
// aScript += helper + "\n\t" + "from salome." + (char*) moduleName.c_str() + " import " + (char*) moduleName.c_str() +"Builder";
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Dump trace of restored study
|
// Dump trace of restored study
|
||||||
if (theSavedTrace.Length() > 0) {
|
if (theSavedTrace.Length() > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user