diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-06-28 14:35:14 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-06-28 14:35:14 +0400 |
commit | 8155033930e204d6eff5fdddbf9dea9d7a4fc23f (patch) | |
tree | 81293405c97cacc57fa1cee0170d69964c4217e1 /source/creator | |
parent | eaf1cdd3836aa425e3dc6f1a11d4556bd7e3e876 (diff) |
- Added user defined python dir to Python's sys.path:
Had to add a function call to creator.c, explained in a note there (look
for pythondir in the file)
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index d057c20068d..d17080fbdeb 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -388,6 +388,15 @@ int main(int argc, char **argv) sound_init_audio(); BIF_init(); + + /** + * NOTE: the U.pythondir string is NULL until BIF_init() is executed, + * 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. + */ + + BPY_syspath_append_pythondir(); } else { BPY_start_python(); |