patch [#26404] UnicodeDecodeError

from user: perfection cat (sindra1961)
This commit is contained in:
Campbell Barton 2011-03-08 01:23:42 +00:00
parent efb5f6008f
commit e713d76f0e

@ -163,7 +163,7 @@ static PyObject *bpy_user_resource(PyObject *UNUSED(self), PyObject *args, PyObj
if (!path)
path = BLI_get_user_folder_notest(folder_id, subdir);
return PyUnicode_FromString(path ? path : "");
return PyUnicode_DecodeFSDefault(path ? path : "");
}
static PyMethodDef meth_bpy_script_paths = {"script_paths", (PyCFunction)bpy_script_paths, METH_NOARGS, bpy_script_paths_doc};