Skip to content
Permalink
Browse files

fix switching of projects within unicode folders

(cherry picked from commit 3951f15)
  • Loading branch information
jef-n committed Aug 23, 2016
1 parent 7d94a59 commit 5fe55b8a7663dacd457119f90c1a494e3548b107
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgisapp.cpp
@@ -11258,13 +11258,13 @@ void QgisApp::projectChanged( const QDomDocument &doc )
if ( !prevProjectDir.isNull() )
{
QString prev = prevProjectDir;
expr = QString( "sys.path.remove('%1'); " ).arg( prev.replace( '\'', "\\'" ) );
expr = QString( "sys.path.remove(u'%1'); " ).arg( prev.replace( '\'', "\\'" ) );
}

prevProjectDir = fi.canonicalPath();

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

QgsPythonRunner::run( expr );
}

0 comments on commit 5fe55b8

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