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/header_script.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/header_script.c')
-rw-r--r-- | source/blender/src/header_script.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/src/header_script.c b/source/blender/src/header_script.c index 98f18c4e2ac..de76a30ecdd 100644 --- a/source/blender/src/header_script.c +++ b/source/blender/src/header_script.c @@ -117,6 +117,7 @@ static void do_script_scriptsmenu(void *arg, int event) switch(event) { case 0: /* update menus */ BPyMenu_RemoveAllEntries(); + BPY_rebuild_syspath(); if (BPyMenu_Init(1) == -1) error("Invalid scripts dir: check console"); break; } |