diff options
Diffstat (limited to 'tools/bootstrp/inimgr.cxx')
-rw-r--r-- | tools/bootstrp/inimgr.cxx | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/tools/bootstrp/inimgr.cxx b/tools/bootstrp/inimgr.cxx index f2d75d03e258..c63679b1bdd7 100644 --- a/tools/bootstrp/inimgr.cxx +++ b/tools/bootstrp/inimgr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: inimgr.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:02:59 $ + * last change: $Author: nf $ $Date: 2001-10-24 10:24:42 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -119,7 +119,7 @@ IniManager::IniManager() mkdir( sLocalPath.GetBuffer(), 00777 ); #endif - sGlobalDir = ByteString( _INIROOT ); + sGlobalDir = GetGlobalIni(); } /****************************************************************************/ @@ -191,6 +191,18 @@ ByteString IniManager::GetLocalIni() } /****************************************************************************/ +ByteString IniManager::GetGlobalIni() +/****************************************************************************/ +{ + ByteString sGlobalPath = ByteString( getenv( "GLOBALINI" )); + + if ( !sGlobalPath.Len()) + sGlobalPath = ByteString( _INIROOT ); + + return sGlobalPath; +} + +/****************************************************************************/ void IniManager::ForceUpdate() /****************************************************************************/ { |