Skip to content
Permalink
Browse files

Fix windows path escaping for QGIS_PLUGINPATH

  • Loading branch information
mhugo committed Feb 19, 2014
1 parent ab929a8 commit 63d84ec21bd6ed772912322dbf2084111d0895a1
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 63d84ec

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