Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-24 08:33:32 +0300
committerCampbell Barton <campbell@blender.org>2022-03-24 08:54:01 +0300
commit4682a0882f02c50b20aa3c4bf9abe9f7ec2e834b (patch)
tree36dc6fb09eaa1d539e516875ed957aba5334666e /source/blender/python
parent5058c4b1446f58bb9a5ddcb65f7353d9df3a594a (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.c24
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;
}