Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillian Padovani Germano <wpgermano@gmail.com>2003-06-28 14:35:14 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2003-06-28 14:35:14 +0400
commit8155033930e204d6eff5fdddbf9dea9d7a4fc23f (patch)
tree81293405c97cacc57fa1cee0170d69964c4217e1 /source/creator
parenteaf1cdd3836aa425e3dc6f1a11d4556bd7e3e876 (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.c9
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();