module search path

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


"Wouter van Marle" <wouterm at spammers-unite-here.com> 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.

   Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Sketch                                 http://sketch.sourceforge.net/
MapIt!                                           http://www.mapit.de/




More information about the Python-list mailing list