From: vsr Date: Tue, 15 Nov 2005 07:27:58 +0000 (+0000) Subject: Improve resource manager: SalomeAppConfig variable: ";" symbol is used as directories... X-Git-Tag: V3_1_0a3~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4ae153ea97c208d4a4927602c60fcc3ab3a0df0c;p=modules%2Fgui.git Improve resource manager: SalomeAppConfig variable: ";" symbol is used as directories separator under Windows; both ";" and ":" symbols can be used under Linux --- diff --git a/src/Qtx/QtxResourceMgr.cxx b/src/Qtx/QtxResourceMgr.cxx index fde678959..f7b684ce9 100644 --- a/src/Qtx/QtxResourceMgr.cxx +++ b/src/Qtx/QtxResourceMgr.cxx @@ -633,8 +633,12 @@ myCheckExist( true ) QString dirs; if ( ::getenv( envVar ) ) dirs = ::getenv( envVar ); - - setDirList( QStringList::split( ";", dirs ) ); +#ifdef WNT + QString dirsep = ";"; // for Windows: ";" is used as directories separator +#else + QString dirsep = "[:|;]"; // for Linux: both ":" and ";" can be used +#endif + setDirList( QStringList::split( QRegExp(dirsep), dirs ) ); installFormat( new XmlFormat() ); installFormat( new IniFormat() );