From: nri Date: Fri, 18 Jul 2003 12:31:27 +0000 (+0000) Subject: NRI : correction wrong mechanism to find GUI library. X-Git-Tag: V1_4_0~39 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=43e93123787da5218cf1a72925ac3c82902c40d2;p=modules%2Fkernel.git NRI : correction wrong mechanism to find GUI library. --- 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