diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-24 08:33:32 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-24 08:54:01 +0300 |
commit | 4682a0882f02c50b20aa3c4bf9abe9f7ec2e834b (patch) | |
tree | 36dc6fb09eaa1d539e516875ed957aba5334666e /source/blender/python | |
parent | 5058c4b1446f58bb9a5ddcb65f7353d9df3a594a (diff) |
Cleanup: use "filepath" instead of "filename" for full paths
Reserve "filename" when only the name component is used.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/generic/blf_py_api.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/python/generic/blf_py_api.c b/source/blender/python/generic/blf_py_api.c index 3fbfd1655c5..9e45105d105 100644 --- a/source/blender/python/generic/blf_py_api.c +++ b/source/blender/python/generic/blf_py_api.c @@ -396,41 +396,41 @@ static PyObject *py_blf_shadow_offset(PyObject *UNUSED(self), PyObject *args) } PyDoc_STRVAR(py_blf_load_doc, - ".. function:: load(filename)\n" + ".. function:: load(filepath)\n" "\n" " Load a new font.\n" "\n" - " :arg filename: the filename of the font.\n" - " :type filename: string\n" + " :arg filepath: the filepath of the font.\n" + " :type filepath: string\n" " :return: the new font's fontid or -1 if there was an error.\n" " :rtype: integer\n"); static PyObject *py_blf_load(PyObject *UNUSED(self), PyObject *args) { - const char *filename; + const char *filepath; - if (!PyArg_ParseTuple(args, "s:blf.load", &filename)) { + if (!PyArg_ParseTuple(args, "s:blf.load", &filepath)) { return NULL; } - return PyLong_FromLong(BLF_load(filename)); + return PyLong_FromLong(BLF_load(filepath)); } PyDoc_STRVAR(py_blf_unload_doc, - ".. function:: unload(filename)\n" + ".. function:: unload(filepath)\n" "\n" " Unload an existing font.\n" "\n" - " :arg filename: the filename of the font.\n" - " :type filename: string\n"); + " :arg filepath: the filepath of the font.\n" + " :type filepath: string\n"); static PyObject *py_blf_unload(PyObject *UNUSED(self), PyObject *args) { - const char *filename; + const char *filepath; - if (!PyArg_ParseTuple(args, "s:blf.unload", &filename)) { + if (!PyArg_ParseTuple(args, "s:blf.unload", &filepath)) { return NULL; } - BLF_unload(filename); + BLF_unload(filepath); Py_RETURN_NONE; } |