Don't do weird PYTHONPATH juggling anymore. Debug build crash doesn't happen anymore since proper libs have been committed.
Hopefully this helps in cases where people have PYTHONPATH set on their system to an incompatible Python version, which can result in crashes.
This commit is contained in:
@@ -170,14 +170,6 @@ void BPY_start_python_path(void)
|
||||
/* cmake/MSVC debug build crashes without this, why only
|
||||
in this case is unknown.. */
|
||||
{
|
||||
char *envpath = getenv("PYTHONPATH");
|
||||
|
||||
if(envpath && envpath[0]) {
|
||||
char *newenvpath = BLI_sprintfN("%s;%s", py_path_bundle, envpath);
|
||||
BLI_setenv("PYTHONPATH", newenvpath);
|
||||
MEM_freeN(newenvpath);
|
||||
}
|
||||
else
|
||||
BLI_setenv("PYTHONPATH", py_path_bundle);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user