[Bf-blender-cvs] [41fb953] master: Docs: update tip on using the systems Python
Campbell Barton
noreply at git.blender.org
Mon Feb 15 09:43:50 CET 2016
Commit: 41fb953fa0b54d0bb3127bb479833efb6281f178
Author: Campbell Barton
Date: Mon Feb 15 19:35:54 2016 +1100
Branches: master
https://developer.blender.org/rB41fb953fa0b54d0bb3127bb479833efb6281f178
Docs: update tip on using the systems Python
===================================================================
M doc/python_api/rst/info_tips_and_tricks.rst
===================================================================
diff --git a/doc/python_api/rst/info_tips_and_tricks.rst b/doc/python_api/rst/info_tips_and_tricks.rst
index 8262526..e8928e0 100644
--- a/doc/python_api/rst/info_tips_and_tricks.rst
+++ b/doc/python_api/rst/info_tips_and_tricks.rst
@@ -213,12 +213,21 @@ this has the disadvantage that any extensions you have installed in your systems
There are 2 ways around this:
-- remove Blender Python sub-directory, Blender will then fallback on the systems Python and use that instead
+- Remove Blender Python sub-directory, Blender will then fallback on the systems Python and use that instead.
+
+ Depending on your platform,
+ you may need to explicitly reference the location of your Python installation using the
+ ``PYTHONPATH`` environment variable, eg:
+
+ .. code-block:: sh
+
+ PYTHONPATH=/usr/lib/python3.5 ./blender
+
.. warning::
The Python version must match the one that Blender comes with.
-- copy the extensions into Blender's Python sub-directory so Blender can access them,
+- Copy or link the extensions into Blender's Python sub-directory so Blender can access them,
you could also copy the entire Python installation into Blenders sub-directory,
replacing the one Blender comes with.
This works as long as the Python versions match and the paths are created in the same relative locations.
More information about the Bf-blender-cvs
mailing list