Not Sure This Can Be Done...

gamename namesagame-usenet at
Tue Apr 1 16:57:24 EDT 2008


I generally have several copies of the same development environment
checked out from cvs at any one time.  Each development tree has a
'tools' dir containing python modules.  Scattered in different places
in the tree are various python scripts.

What I want to do is force my scripts to always look in the closest
'tools' dir for any custom modules to import. For example:



How can I make '' always look in '../../tools' for custom
modules? My preference would be to avoid changing the '' script
and have some way to resolve it via the environment (like PYTHONPATH,
or .pth files, etc.).

Anyone have any ideas?

More information about the Python-list mailing list