use PyDoc_STRVAR macro, so its possible to build without docstrings.
This commit is contained in:
@@ -163,7 +163,7 @@ static PyTypeObject bpy_lib_Type= {
|
||||
NULL
|
||||
};
|
||||
|
||||
static char bpy_lib_load_doc[] =
|
||||
PyDoc_STRVAR(bpy_lib_load_doc,
|
||||
".. method:: load(filepath, link=False, relative=False)\n"
|
||||
"\n"
|
||||
" Returns a context manager which exposes 2 library objects on entering.\n"
|
||||
@@ -175,7 +175,7 @@ static char bpy_lib_load_doc[] =
|
||||
" :type link: bool\n"
|
||||
" :arg relative: When True the path is stored relative to the open blend file.\n"
|
||||
" :type relative: bool\n"
|
||||
;
|
||||
);
|
||||
static PyObject *bpy_lib_load(PyObject *UNUSED(self), PyObject *args, PyObject *kwds)
|
||||
{
|
||||
static const char *kwlist[]= {"filepath", "link", "relative", NULL};
|
||||
|
Reference in New Issue
Block a user