saved sys.path

Alex Martelli aleaxit at yahoo.com
Mon Nov 1 03:17:05 EST 2004


Bengt dePaulis <bdp003 at hotmail.com> wrote:

> I have a local directory that I want to include in my sys.path
> 
> How to save it permanently?

Add to the site-packages directory of your Python instalation a textfile
named for example bengt.pth (name doesn't matter, extension does, and
must be lowercase) with the line of text:

/path/to/the/directory/you/mant


Alex



More information about the Python-list mailing list