module search path

Bernhard Herzog bh at
Mon Feb 24 14:16:26 CET 2003

"Wouter van Marle" <wouterm at> writes:

> Now in future, I want the main program to be installed in /usr/local/bin,
> while the rest of the software goes to either /usr/local/lib/sqfax or
> /usr/local/share/sqfax. Anyway - how to import modules in those dirs?

The easiest way would be to put the main program into
/usr/local/lib/sqfax as well and make a symbolic link in /usr/local/bin
pointing to that. Python will automatically put /usr/local/lib/sqfax on
the search path then.


Intevation GmbH                       

More information about the Python-list mailing list