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:
authorWillian Padovani Germano <wpgermano@gmail.com>2004-01-15 00:36:10 +0300
committerWillian Padovani Germano <wpgermano@gmail.com>2004-01-15 00:36:10 +0300
commit0d9d16e6e9127809b63188272b633c61c6240f31 (patch)
tree27a75c06d7be64b430a8caef255cdb0138dbaf00 /source/creator
parent5190faf513e8289c68d4e40d3ea4db6260493570 (diff)
Scripts in menus:
-- this finishes the heavier part (not counting tweaks and possible bugs) of letting scripts be accessed from Blender menus. Will explain more in emails to bf and bpython lists, but just check source/blender/python/BPY_menus.[hc] and source/blender/src/header_info.c and header_script.c for details. Scripts need a small update (registering info, basically a header) to be used. Scripts dir (user pref file paths: Python) must be set.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index c208666f06d..6b536f8e91a 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -429,9 +429,11 @@ int main(int argc, char **argv)
* so we provide the BPY_ function below to append the user defined
* pythondir to Python's sys.path at this point. Simply putting
* BIF_init() before BPY_start_python() crashes Blender at startup.
+ * Update: now this function also inits the bpymenus, which also depend
+ * on U.pythondir.
*/
- BPY_syspath_append_pythondir();
+ BPY_post_start_python();
}
else {
BPY_start_python();