From: nri Date: Tue, 21 Oct 2003 15:21:27 +0000 (+0000) Subject: NRI : Remove unused SALOME_ROOT_DIR varaible. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=81c1cf00ff72d910f20b46505d4e15a03b04135a;p=modules%2Fkernel.git NRI : Remove unused SALOME_ROOT_DIR varaible. --- diff --git a/src/Loader/InquireServersQThread.cxx b/src/Loader/InquireServersQThread.cxx index 4fa67e651..b80547c9d 100644 --- a/src/Loader/InquireServersQThread.cxx +++ b/src/Loader/InquireServersQThread.cxx @@ -547,7 +547,7 @@ QString findFile( QString filename ) QString dir; char* cenv; - // Try ${SALOME_ROOT_DIR}/share/salome/resources directory + // Try ${KERNEL_ROOT_DIR}/share/salome/resources directory cenv = getenv( "KERNEL_ROOT_DIR" ); if ( cenv ) { dir.sprintf( "%s", cenv ); @@ -592,40 +592,6 @@ QString findFile( QString filename ) return fileInfo.filePath(); } } - // Try ${SALOME_SITE_DIR}/share/salome/resources directory - cenv = getenv( "SALOME_SITE_DIR" ); - if ( cenv ) { - dir.sprintf( "%s", cenv ); - if ( !dir.isEmpty() ) { - dir = addSlash(dir) ; - dir = dir + "share" ; - dir = addSlash(dir) ; - dir = dir + "salome" ; - dir = addSlash(dir) ; - dir = dir + "resources" ; - dir = addSlash(dir) ; - QFileInfo fileInfo( dir + filename ); - if ( fileInfo.isFile() && fileInfo.exists() ) - return fileInfo.filePath(); - } - } - // Try ${SALOME_ROOT_DIR}/share/salome/resources directory - cenv = getenv( "SALOME_ROOT_DIR" ); - if ( cenv ) { - dir.sprintf( "%s", cenv ); - if ( !dir.isEmpty() ) { - dir = addSlash(dir) ; - dir = dir + "share" ; - dir = addSlash(dir) ; - dir = dir + "salome" ; - dir = addSlash(dir) ; - dir = dir + "resources" ; - dir = addSlash(dir) ; - QFileInfo fileInfo( dir + filename ); - if ( fileInfo.isFile() && fileInfo.exists() ) - return fileInfo.filePath(); - } - } return filename; } QString addSlash( const QString& path ) diff --git a/src/TOOLSGUI/ToolsGUI_CatalogGeneratorDlg.cxx b/src/TOOLSGUI/ToolsGUI_CatalogGeneratorDlg.cxx index 1147a6e37..f117c1b60 100644 --- a/src/TOOLSGUI/ToolsGUI_CatalogGeneratorDlg.cxx +++ b/src/TOOLSGUI/ToolsGUI_CatalogGeneratorDlg.cxx @@ -344,14 +344,12 @@ void ToolsGUI_CatalogGeneratorDlg::onApply() } else { QString command = ""; - if ( getenv("SALOME_ROOT_DIR") ) - command = QString( getenv( "SALOME_ROOT_DIR" ) ) + "/bin/runIDLparser -Wbcatalog=" + XmlFile; - else if ( getenv("KERNEL_ROOT_DIR") ) + if ( getenv("KERNEL_ROOT_DIR") ) command = QString( getenv( "KERNEL_ROOT_DIR" ) ) + "/bin/runIDLparser -Wbcatalog=" + XmlFile; else { QAD_MessageBox::error1( this, tr("TOOLS_ERR_ERROR"), - tr("SALOME_ROOT_DIR or KERNEL_ROOT_DIR variables are not defined"), + tr("KERNEL_ROOT_DIR variable is not defined"), tr("TOOLS_BUT_OK") ); } if (!Author.isEmpty()) command += ",author=" + Author;