From 22d4093cbcfba841384f97bccf000339ceecedd0 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 14 Jun 2005 13:34:27 +0000 Subject: [PATCH] PAL9165. emit log message only if no ImportExport file found --- src/GEOMImpl/GEOMImpl_IInsertOperations.cxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx index 520eba58f..a3a60ebbe 100644 --- a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx @@ -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")) - 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") ); } -- 2.39.2