#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"))
- return Standard_True;
+ 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() );
+ }
+ }
- return Standard_False;
+ return ( myResMgr->Find("Import") || myResMgr->Find("Export") );
}