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.
This commit is contained in:
Campbell Barton
2008-02-20 13:42:15 +00:00
parent 6862acc1b3
commit cf27a896fa
5 changed files with 91 additions and 51 deletions

View File

@@ -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;
}