initial sphinx doc generation support for python and C modules.
python modules bpy.app, bpy.utils are now included in docs. C defined python module bpy.props has its docstrings extracted and written directly into sphinx docs since the C methods cant be inspected. added docstrings to bpy.props and improved some in bpy.utils. will update online docs tomorrow.
This commit is contained in:
@@ -18,6 +18,27 @@
|
||||
|
||||
# <pep8 compliant>
|
||||
|
||||
"""
|
||||
This module contains application values that remain unchanged during runtime.
|
||||
|
||||
.. data:: version
|
||||
|
||||
The Blender version as a tuple of 3 numbers. eg. (2, 50, 11)
|
||||
|
||||
|
||||
.. data:: version_string
|
||||
|
||||
The Blender version formatted as a string.
|
||||
|
||||
.. data:: home
|
||||
|
||||
The blender home directory, normally matching $HOME
|
||||
|
||||
.. data:: binary_path
|
||||
|
||||
The location of blenders executable, useful for utilities that spawn new instances.
|
||||
|
||||
"""
|
||||
# constants
|
||||
import _bpy
|
||||
version = _bpy._VERSION
|
||||
|
||||
Reference in New Issue
Block a user