Changed the script UI registration to import rather then run each python script,
authorCampbell Barton <ideasman42@gmail.com>
Sat, 11 Apr 2009 05:46:40 +0000 (05:46 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 11 Apr 2009 05:46:40 +0000 (05:46 +0000)
commit9d922b4c24538d53aed9b0661804652455f8a3b7
treeca1beb6b2c571e84d7822b414ce0b30cefc38002
parentc7b587105fae174c47bd29291ac384037af06685
Changed the script UI registration to import rather then run each python script,
this means it caches the compiled pyc files after importing fro the first time.

My times for importing 501 buttons_objects.py files were.
- running each as a script 1.9sec
- importing for the first time 1.8sec
- importing a second time (using pyc files) 0.57sec

Also added "bpy" to sys.modules so it can be imported.
release/ui/buttons_objects.py
source/blender/python/BPY_extern.h
source/blender/python/intern/bpy_interface.c
source/blender/python/intern/bpy_operator.c
source/blender/python/intern/bpy_operator.h
source/blender/python/intern/bpy_rna.c
source/creator/creator.c
source/gameengine/GameLogic/SCA_KeyboardSensor.cpp