More elegant way to cwd?

Peter Hansen peter at
Tue Dec 28 16:31:55 CET 2004

Kamilche wrote:
> Well... but to call it from the shared directory, I'd have to first 
> switch to the shared directory! Which would defeat the purpose.

As Steve said, plus "use PYTHONPATH or .pth files".  That's
exactly what they're for.

Doing what you're doing as a means of getting access to
regularly used shared modules makes no sense.  Within an
application, to get access to a particular, special set of
modules for some reason, that can often make sense.  For
"library" modules there are already other and more elegant


More information about the Python-list mailing list