__peter__ at web.de
Mon Nov 24 10:41:55 CET 2003
Jeff Wagner wrote:
> Is it possible to append a new Path to some file permanently? It seems
> like a sys.path.append('/my/new/path') statement is temporary.
> In other words, where and in what file on a Win32 box or Linux box is the
> sys.path info kept. I have a couple of paths I keep practice files in I
> want to add to the path permanently.
The easiest way to extend the list of paths is to put a .pth file (a text
file with an arbitrary name, the .pth extension containing one path per
line) in the site-packages directory. For details, see
More information about the Python-list