diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-28 13:00:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-28 13:00:04 +0300 |
commit | 98f1d6957eccd3e7fab4274f29ee6a44de154210 (patch) | |
tree | c54dd13e29a47ea32d5d9dd9a1ef84583d9e1f9b /release/scripts/modules/bpy/__init__.py | |
parent | 5f329190c9c2921966217611a3ce61f735ba64ec (diff) |
new python module constants
* bpy.home - result of BLI_gethome()
* bpy.version - BLENDER_VERSION/100, BLENDER_VERSION%100, BLENDER_SUBVERSION
* bpy.version_string, as above, formatted: "%d.%02d (sub %d)"
Diffstat (limited to 'release/scripts/modules/bpy/__init__.py')
-rw-r--r-- | release/scripts/modules/bpy/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy/__init__.py b/release/scripts/modules/bpy/__init__.py index 5fd0d17630d..65bf75b43e9 100644 --- a/release/scripts/modules/bpy/__init__.py +++ b/release/scripts/modules/bpy/__init__.py @@ -99,4 +99,10 @@ def _main(): else: load_scripts() + +# constants +version = _bpy._VERSION +version_string = _bpy._VERSION_STR +home = _bpy._HOME + _main() |