Maybe, set environment variable PYTHONPATH.  More details at

<http://www.python.org/doc/current/tut/node8.html>

/Jean Brouwers



In article <[EMAIL PROTECTED]>, Lenard Lindstrom <[EMAIL PROTECTED]>
wrote:

> Amir Dekel <[EMAIL PROTECTED]> writes:
> 
> > Hi everyone,
> > 
> > I have two problems:
> > 
> > 1. How can I keep my changes in sys.path after closing the interpreter?
> > 
> Just how flexible does this need to be? sys.path can easily be altered
> at startup from within a sitecustomize module (section 3.28 -- site --
> Python Runtime Services -- Python Library Reference) or a module specified
> by the PYTHONSTARTUP environment variable (section 3.29 -- user -- Python
> Runtime Services). Just have one of these modules append to sys.path any
> additional paths you need.
> 
> Saving sys.path changes between interpreter runs would be more involved.
> On Windows Python loads the initial module search path from the registry.
> Python's registry entries are made during installation and are left alone
> afterwards. Changing these entries is probably not a good idea. But
> if you need sys.path persistence I can try writing an example that does
> it automatically using the atexit module and a history file.
> 
> Lenard Lindstrom
> <[EMAIL PROTECTED]>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to