mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 01:58:36 +05:00
PAL9165. emit log message only if no ImportExport file found
This commit is contained in:
parent
2359e000c2
commit
22d4093cbc
@ -383,11 +383,14 @@ Standard_Boolean GEOMImpl_IInsertOperations::InitResMgr()
|
||||
#else
|
||||
aUserResDir += "/.salome/resources";
|
||||
#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 Standard_True;
|
||||
|
||||
return Standard_False;
|
||||
return ( myResMgr->Find("Import") || myResMgr->Find("Export") );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user