Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fef9bba commit eb9b39bCopy full SHA for eb9b39b
1 file changed
Python/sysmodule.c
@@ -1072,11 +1072,12 @@ _PySys_Init(void)
1072
SET_SYS_FROM_STRING("platform",
1073
PyUnicode_FromString(Py_GetPlatform()));
1074
SET_SYS_FROM_STRING("executable",
1075
- PyUnicode_FromString(Py_GetProgramFullPath()));
+ PyUnicode_DecodeFSDefault(
1076
+ Py_GetProgramFullPath()));
1077
SET_SYS_FROM_STRING("prefix",
- PyUnicode_FromString(Py_GetPrefix()));
1078
+ PyUnicode_DecodeFSDefault(Py_GetPrefix()));
1079
SET_SYS_FROM_STRING("exec_prefix",
- PyUnicode_FromString(Py_GetExecPrefix()));
1080
+ PyUnicode_DecodeFSDefault(Py_GetExecPrefix()));
1081
SET_SYS_FROM_STRING("maxint",
1082
PyInt_FromLong(PyInt_GetMax()));
1083
SET_SYS_FROM_STRING("maxsize",
0 commit comments