Skip to content

Commit

Permalink
Merge pull request #1195 from Oslandia/issue9599
Browse files Browse the repository at this point in the history
Fix windows path escaping for QGIS_PLUGINPATH
  • Loading branch information
jef-n committed Feb 19, 2014
2 parents c277f46 + 63d84ec commit c4b0ecd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/python/qgspythonutilsimpl.cpp
Expand Up @@ -82,16 +82,16 @@ void QgsPythonUtilsImpl::initPython( QgisInterface* interface )
QStringList pluginpaths;
foreach ( QString p, extraPluginsPaths() )
{
#ifdef Q_OS_WIN
p = p.replace( '\\', "\\\\" );
#endif
if ( !QDir( p ).exists() )
{
QgsMessageOutput* msg = QgsMessageOutput::createMessageOutput();
msg->setTitle( QObject::tr( "Python error" ) );
msg->setMessage( QString( QObject::tr( "The extra plugin path '%1' does not exist !" ) ).arg( p ), QgsMessageOutput::MessageText );
msg->showMessage();
}
#ifdef Q_OS_WIN
p = p.replace( '\\', "\\\\" );
#endif
// we store here paths in unicode strings
// the str constant will contain utf8 code (through runString)
// so we call '...'.decode('utf-8') to make a unicode string
Expand Down

0 comments on commit c4b0ecd

Please sign in to comment.