Skip to content
Permalink
Browse files

Fix 'bytes can only contain ASCII' error on python3

  • Loading branch information
nyalldawson authored and m-kuhn committed Jan 19, 2017
1 parent 01cd784 commit f5e4c9d6178b35cf952c26c05ab6bbc36fd21c3e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/python/qgspythonutilsimpl.cpp
@@ -619,11 +619,11 @@ QString QgsPythonUtilsImpl::homePythonPath()
QString settingsDir = QgsApplication::qgisSettingsDirPath();
if ( QDir::cleanPath( settingsDir ) == QDir::homePath() + QStringLiteral( "/.qgis3" ) )
{
return QStringLiteral( "b\"%1/.qgis3/python\".decode('utf-8')" ).arg( QDir::homePath() );
return QStringLiteral( "\"%1/.qgis3/python\"" ).arg( QDir::homePath() );
}
else
{
return "b\"" + settingsDir.replace( '\\', QLatin1String( "\\\\" ) ) + "python\".decode('utf-8')";
return "\"" + settingsDir.replace( '\\', QLatin1String( "\\\\" ) ) + "python\"";
}
}

0 comments on commit f5e4c9d

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