[Tutor] How to import my own module

Ignacio Vazquez-Abrams ignacio@openservices.net
Tue, 25 Sep 2001 16:13:07 -0400 (EDT)


On Tue, 25 Sep 2001, runsun wrote:

> How can I import my own module and use the
> functions/classes/variables that are defined in
> that module ?
>
> Should I put it in the /usr/local/bin/python folder?
> Should I be a root in order to do so ? Or I can put
> it in the same folder in which the calling cgi resides?
>
> I've looked all over the net and couldn't find anything
> on this.

It should be in $(PREFIX)/lib/pythonX.Y/site-packages.

-- 
Ignacio Vazquez-Abrams  <ignacio@openservices.net>