From: abd Date: Tue, 4 Apr 2006 08:29:25 +0000 (+0000) Subject: Adapt Export/Import functions for plugins X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~43 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=184e55bf08d398092e073a2b1e7acc45b7431140;p=modules%2Fgeom.git Adapt Export/Import functions for plugins --- diff --git a/resources/ImportExport b/resources/ImportExport index 574e0e2e3..15bf9c78c 100644 --- a/resources/ImportExport +++ b/resources/ImportExport @@ -1,14 +1,14 @@ Import: BREP|IGES|STEP Export: BREP|IGES|STEP -BREP.Import: libBREPImport.so -BREP.Export: libBREPExport.so +BREP.Import: libBREPImport +BREP.Export: libBREPExport BREP.Pattern: BREP Files ( *.brep ) -IGES.Import: libIGESImport.so -IGES.Export: libIGESExport.so +IGES.Import: libIGESImport +IGES.Export: libIGESExport IGES.Pattern: IGES Files ( *.iges *.igs ) -STEP.Import: libSTEPImport.so -STEP.Export: libSTEPExport.so +STEP.Import: libSTEPImport +STEP.Export: libSTEPExport STEP.Pattern: STEP Files ( *.step *.stp ) diff --git a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx index 6aee3f044..8e12231cf 100644 --- a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx @@ -352,7 +352,12 @@ Standard_Boolean GEOMImpl_IInsertOperations::IsSupported aKey += "."; aKey += aMode; if (myResMgr->Find(aKey.ToCString())) { - TCollection_AsciiString aLibName (myResMgr->Value(aKey.ToCString())); + TCollection_AsciiString aLibName (myResMgr->Value(aKey.ToCString())); +#ifndef WNT + aLibName += ".so"; +#else + aLibName += ".dll"; +#endif theLibName = new TCollection_HAsciiString (aLibName); return Standard_True; }