File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -82,16 +82,16 @@ void QgsPythonUtilsImpl::initPython( QgisInterface* interface )
82
82
QStringList pluginpaths;
83
83
foreach ( QString p, extraPluginsPaths () )
84
84
{
85
- #ifdef Q_OS_WIN
86
- p = p.replace ( ' \\ ' , " \\\\ " );
87
- #endif
88
85
if ( !QDir ( p ).exists () )
89
86
{
90
87
QgsMessageOutput* msg = QgsMessageOutput::createMessageOutput ();
91
88
msg->setTitle ( QObject::tr ( " Python error" ) );
92
89
msg->setMessage ( QString ( QObject::tr ( " The extra plugin path '%1' does not exist !" ) ).arg ( p ), QgsMessageOutput::MessageText );
93
90
msg->showMessage ();
94
91
}
92
+ #ifdef Q_OS_WIN
93
+ p = p.replace ( ' \\ ' , " \\\\ " );
94
+ #endif
95
95
// we store here paths in unicode strings
96
96
// the str constant will contain utf8 code (through runString)
97
97
// so we call '...'.decode('utf-8') to make a unicode string
You can’t perform that action at this time.
0 commit comments