Skip to content

Commit d80c90d

Browse files
author
jef
committed
don't split QGIS_PLUGINPATH at colon on windows
git-svn-id: http://svn.osgeo.org/qgis/trunk@15073 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 9707370 commit d80c90d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/python/qgspythonutilsimpl.cpp

+6-4
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,14 @@ QStringList QgsPythonUtilsImpl::extraPluginsPaths()
441441
return QStringList();
442442

443443
QString paths = QString::fromLocal8Bit( cpaths );
444-
if ( paths.contains( ';' ) ) // keep windows users happy
445-
return paths.split( ';' );
446-
else if ( paths.contains( ':' ) ) // keep unix users happy
444+
#ifndef Q_OS_WIN
445+
if ( paths.contains( ':' ) )
447446
return paths.split( ':' );
447+
#endif
448+
if ( paths.contains( ';' ) )
449+
return paths.split( ';' );
448450
else
449-
return QStringList( paths ); // just one path
451+
return QStringList( paths );
450452
}
451453

452454

0 commit comments

Comments
 (0)