changes python initialization
authorCampbell Barton <ideasman42@gmail.com>
Fri, 13 Nov 2009 09:28:05 +0000 (09:28 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 13 Nov 2009 09:28:05 +0000 (09:28 +0000)
commit4c7dc3e5c5423ec20ca69841e49718fbae02a22d
tree0b3cb4e7d642c40d2ce5cc8f5cf941cc08d4af44
parentd0dff582a88da396234fc913f8ed35f275d6c34d
changes python initialization
- bpy is now a python package, this makes it easier to add utility modules and adjust python startup which was previously using verbose Py/C api. Access should not be any slower since both C and Python modules use dictionary access.
- loop over scripts and load via python (currently F8 reload isnt working, will add back shortly)
- the C module is kept but renamed to _bpy and not meant for direct access from anything but the bpy package.
- bpy_types.py is an exception since it runs before the bpy package is initialized.
13 files changed:
release/scripts/io/netrender/__init__.py
release/scripts/modules/bpy/__init__.py [new file with mode: 0644]
release/scripts/modules/bpy/ops.py [moved from release/scripts/modules/bpy_ops.py with 94% similarity]
release/scripts/modules/bpy/utils.py [moved from release/scripts/modules/bpy_utils.py with 91% similarity]
release/scripts/modules/bpy_ext/Mesh.py [deleted file]
release/scripts/modules/bpy_ext/Object.py [deleted file]
release/scripts/modules/bpy_ext/__init__.py [deleted file]
release/scripts/modules/bpy_types.py
source/blender/editors/space_script/script_edit.c
source/blender/python/BPY_extern.h
source/blender/python/intern/bpy_interface.c
source/blender/python/intern/stubs.c
source/creator/creator.c