Skip to content

Commit f5e4c9d

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎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)
Please sign in to comment.