PAL9165. emit message only if no valid ImportExport file found

This commit is contained in:
eap 2005-06-15 05:54:44 +00:00
parent 5013150a88
commit 873285da36

View File

@ -367,11 +367,14 @@ Standard_Boolean GEOMImpl_IInsertOperations::InitResMgr()
#else #else
aUserResDir += "/.salome/resources"; aUserResDir += "/.salome/resources";
#endif #endif
myResMgr = new Resource_Manager ("ImportExport", aResDir, aUserResDir, Standard_True); myResMgr = new Resource_Manager ("ImportExport", aResDir, aUserResDir, Standard_False);
if (!myResMgr->Find("Import") && !myResMgr->Find("Export")) {
// instead of complains in Resource_Manager
INFOS("No valid file \"ImportExport\" found in " << aResDir.ToCString() <<
" and in " << aUserResDir.ToCString() );
}
} }
if (myResMgr->Find("Import") || myResMgr->Find("Export")) return ( myResMgr->Find("Import") || myResMgr->Find("Export") );
return Standard_True;
return Standard_False;
} }