Skip to content

Commit 3951f15

Browse files
committedAug 23, 2016
fix switching of projects within unicode folders
1 parent cd7a14d commit 3951f15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11258,13 +11258,13 @@ void QgisApp::projectChanged( const QDomDocument &doc )
1125811258
if ( !prevProjectDir.isNull() )
1125911259
{
1126011260
QString prev = prevProjectDir;
11261-
expr = QString( "sys.path.remove('%1'); " ).arg( prev.replace( '\'', "\\'" ) );
11261+
expr = QString( "sys.path.remove(u'%1'); " ).arg( prev.replace( '\'', "\\'" ) );
1126211262
}
1126311263

1126411264
prevProjectDir = fi.canonicalPath();
1126511265

1126611266
QString prev = prevProjectDir;
11267-
expr += QString( "sys.path.append('%1')" ).arg( prev.replace( '\'', "\\'" ) );
11267+
expr += QString( "sys.path.append(u'%1')" ).arg( prev.replace( '\'', "\\'" ) );
1126811268

1126911269
QgsPythonRunner::run( expr );
1127011270
}

0 commit comments

Comments
 (0)
Please sign in to comment.