From cf27a896faf6e5fee7eeea9e70fbee1a9447572f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 20 Feb 2008 13:42:15 +0000 Subject: 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. --- source/blender/src/header_script.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/src/header_script.c') 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; } -- cgit v1.2.3