From 43e93123787da5218cf1a72925ac3c82902c40d2 Mon Sep 17 00:00:00 2001 From: nri Date: Fri, 18 Jul 2003 12:31:27 +0000 Subject: [PATCH] NRI : correction wrong mechanism to find GUI library. --- src/SALOMEGUI/SALOMEGUI_Application.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SALOMEGUI/SALOMEGUI_Application.cxx b/src/SALOMEGUI/SALOMEGUI_Application.cxx index bd982b59f..39897922b 100644 --- a/src/SALOMEGUI/SALOMEGUI_Application.cxx +++ b/src/SALOMEGUI/SALOMEGUI_Application.cxx @@ -500,12 +500,14 @@ void SALOMEGUI_Application::onDisplay(int id) MESSAGE ( " Not found " ) } } - if ( !found && getenv("KERNEL_ROOT_DIR") ) { + if ( !found && getenv( parentComp + "_ROOT_DIR") ) { dir.fill('\0'); - dir.sprintf("%s", getenv("KERNEL_ROOT_DIR")); + dir.sprintf("%s", getenv(parentComp + "_ROOT_DIR")); dir = QAD_Tools::addSlash(dir) ; dir = dir + "lib" ; dir = QAD_Tools::addSlash(dir) ; + dir = dir + "salome" ; + dir = QAD_Tools::addSlash(dir) ; #ifdef WNT dir = dir + "lib" + parentComp.latin1() + "GUI.dll" ; #else -- 2.39.2