Additional fix for issue 0013373: EDF PAL 273 : Option Single/Multi file dump

This commit is contained in:
ouv 2011-03-30 07:27:32 +00:00
parent a52c65cb3f
commit e4ebb2bada

View File

@ -745,7 +745,7 @@ TCollection_AsciiString GEOM_Engine::DumpPython(int theDocID,
globalVars += ", ";
globalVars += data->_pyName;
}
if ( !globalVars.IsEmpty() ) {
if ( isMultiFile && !globalVars.IsEmpty() ) {
globalVars.Insert( 1, "\n\tglobal " );
aScript.Insert( posToInsertGlobalVars, globalVars );
}