Skip to content

Commit

Permalink
Docs for setPythonHome
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Irv committed Jun 22, 2018
1 parent 4c12d42 commit b2136a7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ All the parameters can be passed directly to the JVM either as Java system prope

Such property file is also written for each build and is found in ``build/lib-<os-platform>-<python-version>/jpyconfig.properties``.

Setting PYTHONHOME
------------------

If the environment variable ``PYTHONHOME`` is not set when you call Python from Java, you may get an error about
file system encodings not being found. It is possible to set the location of Python from your
Java program. Use ``PyLib.setPythonHome(pathToPythonHome)`` to do that, where ``pathToPythonHome`` is a ``String`` that
contains the location of the Python installation.

========================
Build for Linux / Darwin
Expand Down

0 comments on commit b2136a7

Please sign in to comment.