Blender Git Commit Log

Git Commits -> Revision 7c2f007

Revision 7c2f007 by Campbell Barton (master)
January 16, 2020, 16:36 (GMT)
Python: disable environment variables by default

This avoids the problem where Blender doesn't start because
the PYTHONPATH points to an incompatible Python version,
see T72807.

Previously we chose to assume people who set the PYTHONPATH know what
they're doing, however users may have set this for non Blender projects.
So it's not obvious that this is the cause of Blender not to launch
on their system.

To use Python's environment vars, pass the argument:

Note that this only impacts Python run-time environment variables
documented in `python --help`, Access from `os.environ` remains.

Commit Details:

Full Hash: 7c2f0074f3fe2411daa7a6e351d7cbc535246871
Parent Commit: abdaf2a
Lines Changed: +29, -0

3 Modified Paths:

/source/blender/python/BPY_extern.h (+1, -0) (Diff)
/source/blender/python/intern/bpy_interface.c (+13, -0) (Diff)
/source/creator/creator_args.c (+15, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021