PyAPI: Proper Solution to bpy.app
authorAaron Carlisle <carlisle.b3d@gmail.com>
Thu, 15 Jun 2017 04:54:41 +0000 (00:54 -0400)
committerAaron Carlisle <carlisle.b3d@gmail.com>
Thu, 15 Jun 2017 04:54:41 +0000 (00:54 -0400)
doc/python_api/rst/bge.app.rst
source/blender/python/intern/bpy_app.c

index 326d9651a54dbd29b979229d8a47fb130f1a50d9..e8b91ffbcafb546d9caf73fd5b794ff8309c5fb6 100644 (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
-
index 47b4e8408055afb944f776682b7c27afa751ceb9..8b3464173d2dc128fbeb2faac6ee35ae63cee49f 100644 (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
 };