Skip to content

Commit

Permalink
don't split QGIS_PLUGINPATH at colon on windows
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15073 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jan 25, 2011
1 parent 9707370 commit d80c90d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/python/qgspythonutilsimpl.cpp
Original file line number Diff line number Diff line change
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 d80c90d

Please sign in to comment.