We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent cd7a14d commit 3951f15Copy full SHA for 3951f15
src/app/qgisapp.cpp
@@ -11258,13 +11258,13 @@ void QgisApp::projectChanged( const QDomDocument &doc )
11258
if ( !prevProjectDir.isNull() )
11259
{
11260
QString prev = prevProjectDir;
11261
- expr = QString( "sys.path.remove('%1'); " ).arg( prev.replace( '\'', "\\'" ) );
+ expr = QString( "sys.path.remove(u'%1'); " ).arg( prev.replace( '\'', "\\'" ) );
11262
}
11263
11264
prevProjectDir = fi.canonicalPath();
11265
11266
11267
- expr += QString( "sys.path.append('%1')" ).arg( prev.replace( '\'', "\\'" ) );
+ expr += QString( "sys.path.append(u'%1')" ).arg( prev.replace( '\'', "\\'" ) );
11268
11269
QgsPythonRunner::run( expr );
11270
0 commit comments