Skip to content

Commit f5e4c9d

Browse files
nyalldawsonm-kuhn
authored andcommitted
Fix 'bytes can only contain ASCII' error on python3
1 parent 01cd784 commit f5e4c9d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/python/qgspythonutilsimpl.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,11 +619,11 @@ QString QgsPythonUtilsImpl::homePythonPath()
619619
QString settingsDir = QgsApplication::qgisSettingsDirPath();
620620
if ( QDir::cleanPath( settingsDir ) == QDir::homePath() + QStringLiteral( "/.qgis3" ) )
621621
{
622-
return QStringLiteral( "b\"%1/.qgis3/python\".decode('utf-8')" ).arg( QDir::homePath() );
622+
return QStringLiteral( "\"%1/.qgis3/python\"" ).arg( QDir::homePath() );
623623
}
624624
else
625625
{
626-
return "b\"" + settingsDir.replace( '\\', QLatin1String( "\\\\" ) ) + "python\".decode('utf-8')";
626+
return "\"" + settingsDir.replace( '\\', QLatin1String( "\\\\" ) ) + "python\"";
627627
}
628628
}
629629

0 commit comments

Comments
 (0)