if ( !aGeomObjectEntry.IsEmpty() )
{
QString aSalomeObjName = HYDROData_Tool::GenerateNameForPython( theTreatedObjects, "obstacle_sobj" );
- aResList << QString( "%1 = salome.myStudy.FindObjectID( \"%2\" );" )
+ aResList << QString( "%1 = theStudy.FindObjectID( \"%2\" );" )
.arg( aSalomeObjName ).arg( aGeomObjectEntry.ToCString() );
aResList << QString( "%1.ImportFromGeomIOR( %2.GetIOR() );" )