diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-02-20 16:42:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-02-20 16:42:15 +0300 |
commit | cf27a896faf6e5fee7eeea9e70fbee1a9447572f (patch) | |
tree | e84b3e2a3ffd6d7f92138771d5ecb0929e1a3669 /source/blender/src/headerbuttons.c | |
parent | 6862acc1b3fca36cdbd629b7300d03f30c914874 (diff) |
Python Bugfix,
Setting the user preference for python scripts didnt add the bpymodules subdirectory to sys.path (python module search path).
Also problems with entering and exiting- the old path was used until next restart.
Diffstat (limited to 'source/blender/src/headerbuttons.c')
-rw-r--r-- | source/blender/src/headerbuttons.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/src/headerbuttons.c b/source/blender/src/headerbuttons.c index d6e0b054a8b..e3c594f4ea3 100644 --- a/source/blender/src/headerbuttons.c +++ b/source/blender/src/headerbuttons.c @@ -1496,6 +1496,7 @@ void do_global_buttons(unsigned short event) case B_PYMENUEVAL: /* is button from space.c *info* */ waitcursor( 1 ); /* can take some time */ BPyMenu_RemoveAllEntries(); /* free old data */ + BPY_rebuild_syspath(); if (BPyMenu_Init(1) == -1) { /* re-eval scripts registration in menus */ waitcursor( 0 ); error("Invalid scripts dir: check console"); |