Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't split QGIS_PLUGINPATH at colon on windows
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15073 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jan 25, 2011
1 parent 7945f5e commit 091c9e1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/python/qgspythonutilsimpl.cpp
Expand Up @@ -441,12 +441,14 @@ QStringList QgsPythonUtilsImpl::extraPluginsPaths()
return QStringList();

QString paths = QString::fromLocal8Bit( cpaths );
if ( paths.contains( ';' ) ) // keep windows users happy
return paths.split( ';' );
else if ( paths.contains( ':' ) ) // keep unix users happy
#ifndef Q_OS_WIN
if ( paths.contains( ':' ) )
return paths.split( ':' );
#endif
if ( paths.contains( ';' ) )
return paths.split( ';' );
else
return QStringList( paths ); // just one path
return QStringList( paths );
}


Expand Down

0 comments on commit 091c9e1

Please sign in to comment.