- 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)
This commit is contained in:
Willian Padovani Germano
2003-06-28 10:35:14 +00:00
parent eaf1cdd383
commit 8155033930
3 changed files with 25 additions and 0 deletions

View File

@@ -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();