Python, Linux, default search places.

Karim kliateni at gmail.com
Thu Apr 7 14:03:57 EDT 2016



On 07/04/2016 13:02, Frantisek.Fridrich at rubena.cgs.cz wrote:
> Hello.
>
> I run a third party program that can use a system installation of Python.
> I have to modify environment variables:
> PYTHONPATH,
> PATH,
> LD_LIBRARY_PATH.
>
> All these environment variables are empty at the beginning but Python uses
> a default or initial places to search for modules, libraries or
> executables.
>
> Q1. Could anybody tell me where I could find default search places for
> environment variables PYTHONPATH, PATH, LD_LIBRARY_PATH?
>
> OS: SUSE Linux Enterprise Server 11.
> HW: HP DL160 Gen8 SFF CTO.
> Python 2.6.
>
> Frantisek

export PYTHONPATH=${PYTHONPATH}/<Third party home>/<Third party python package>
export PATH=${PATH}:<Third party home>/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:<Third party home>/lib

Mine for pyparsing:

export PYTHONPATH=~/project/pyparsing-2.0.3

Karim




More information about the Python-list mailing list