PyAPI: Proper Solution to bpy.app

This commit is contained in:
Aaron Carlisle 2017-06-15 00:54:41 -04:00
parent df7c609fda
commit 44fd84bcc3
2 changed files with 13 additions and 11 deletions

View File

@ -4,15 +4,6 @@ Application Data (bge.app)
Module to access application values that remain unchanged during runtime.
Submodules:
.. toctree::
:maxdepth: 1
bpy.app.handlers.rst
bpy.app.translations.rst
.. module:: bge.app
.. data:: version
@ -56,4 +47,3 @@ Submodules:
True if the BGE has been built with physics support.
:type: bool

View File

@ -119,9 +119,21 @@ static PyStructSequence_Field app_info_fields[] = {
{NULL},
};
PyDoc_STRVAR(bpy_app_doc,
"This module contains application values that remain unchanged during runtime.\n"
"\n"
"Submodules:\n"
"\n"
".. toctree::\n"
" :maxdepth: 1\n"
"\n"
" bpy.app.handlers.rst\n"
" bpy.app.translations.rst\n"
);
static PyStructSequence_Desc app_info_desc = {
(char *)"bpy.app", /* name */
(char *)"This module contains application values that remain unchanged during runtime.", /* doc */
bpy_app_doc, /* doc */
app_info_fields, /* fields */
ARRAY_SIZE(app_info_fields) - 1
};