diff --git a/runtime/Server.cpp b/runtime/Server.cpp index 2440268..119add6 100644 --- a/runtime/Server.cpp +++ b/runtime/Server.cpp @@ -87,7 +87,7 @@ Server::Server(quint16 port) #ifdef PYTHON2 PyList_Append(sysPath, PyString_FromString(path_list.at(i).toUtf8().data())); #else - PyList_Append(sysPath, PyBytes_FromString(path_list.at(i).toUtf8().data())); + PyList_Append(sysPath, PyUnicode_DecodeFSDefault(path_list.at(i).toUtf8().data())); #endif } }