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 <ideasman42@gmail.com>2010-01-03 02:14:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-03 02:14:01 +0300
commit04d0261c37ccd28e8466312f5a2d8260c5a4c9e9 (patch)
tree1e86df8239609c76f93d2cc15f65db27aeceef3d /release/scripts/modules/bpy/__init__.py
parente7d863cee530d477f0aa494a4f0f9e70ac5012c7 (diff)
new python submodule. eg.
from bpy.app import binary_path, version, version_string, home can add constant variables from blender here as needed (maybe functions too... bpy.app.memory_usage() ?)
Diffstat (limited to 'release/scripts/modules/bpy/__init__.py')
-rw-r--r--release/scripts/modules/bpy/__init__.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/release/scripts/modules/bpy/__init__.py b/release/scripts/modules/bpy/__init__.py
index 65bf75b43e9..6209cbe4f0e 100644
--- a/release/scripts/modules/bpy/__init__.py
+++ b/release/scripts/modules/bpy/__init__.py
@@ -27,6 +27,7 @@ context = _bpy.context
# python modules
from bpy import utils
+from bpy import app
from bpy import ops as _ops_module
@@ -100,9 +101,4 @@ def _main():
load_scripts()
-# constants
-version = _bpy._VERSION
-version_string = _bpy._VERSION_STR
-home = _bpy._HOME
-
_main()