Newbie problem with PYTHONPATH

Fredrik Lundh fredrik at pythonware.com
Thu Sep 9 03:10:57 EDT 1999


Brent Goodwin <goodwin_brent at bah.com> wrote:
> I'm having problems getting Python to recognize a path to a drive other
> than the one it is installed on.  I have tried setting the PYTHONPATH in
> the autoexec.bat (I'm on a Win95 machine) to no avail, and I tried using
> the path editor in the Pythonwin GUI.  Neither method worked.

weird.

> The way I've found so far is to make a module which appends the path
> I'm looking for to sys.path, and import the module manually each time
> I start the interpreter.

well, if you cannot sort out the environment variable/registry bit,
you could always name your path fixing module "sitecustomize.py",
and put it somewhere near the interpreter (in the original python
path, that is -- if python doesn't complain about missing exceptions
when you start, portions of the path is obviously correct...)

</F>





More information about the Python-list mailing list