]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
NRI : correction wrong mechanism to find GUI library.
authornri <nri@opencascade.com>
Fri, 18 Jul 2003 12:31:27 +0000 (12:31 +0000)
committernri <nri@opencascade.com>
Fri, 18 Jul 2003 12:31:27 +0000 (12:31 +0000)
src/SALOMEGUI/SALOMEGUI_Application.cxx

index bd982b59f80a41553fd59d613cc672e6414f108d..39897922b073a6b56aff54145049d0d6c4be832b 100644 (file)
@@ -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