From 4ae153ea97c208d4a4927602c60fcc3ab3a0df0c Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 15 Nov 2005 07:27:58 +0000 Subject: [PATCH] Improve resource manager: SalomeAppConfig variable: ";" symbol is used as directories separator under Windows; both ";" and ":" symbols can be used under Linux --- src/Qtx/QtxResourceMgr.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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() ); -- 2.39.2