More elegant way to cwd?

Peter Hansen peter at engcorp.com
Tue Dec 28 10:31:55 EST 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
means.

-Peter



More information about the Python-list mailing list