[Thuban-list] setting the pythonpath
Bernhard Reiter
bernhard at intevation.de
Wed Jul 21 15:27:00 CEST 2004
On Wed, Jul 21, 2004 at 10:49:48AM +0200, Lorenzo Moretti wrote:
> - How can I enter PYTHONPATH environment for loading extensions? I
> have created pythonstart.py in home and it works with import module
> inside .thuban folder.
Usually this is done modifying the environment variables.
I do not know about Mac OS 10, but you can type
in a command line
PYTHONPATH=something
export PYTHONPATH
your operating system documentation should tell you where you
can set that permanently. Usually to have those lines
in ~/.bashrc or ~/.bash_profile
Another way is to use thubanstart.py and
have something like the following in there:
import sys
sys.path.append("/usr/lib/thuban/Extensions")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-list/attachments/20040721/1bac674f/attachment.bin
More information about the Thuban-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)