Skip to content
Permalink
Browse files

Merge pull request #1195 from Oslandia/issue9599

Fix windows path escaping for QGIS_PLUGINPATH
  • Loading branch information
jef-n committed Feb 19, 2014
2 parents c277f46 + 63d84ec commit c4b0ecd25a244a7274383618dca721ebda169968
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/python/qgspythonutilsimpl.cpp
@@ -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

0 comments on commit c4b0ecd

Please sign in to comment.
You can’t perform that action at this time.