How to create ones own lib

Xavier Ho contact at xavierho.com
Wed Aug 19 05:28:50 EDT 2009


On Wed, Aug 19, 2009 at 7:00 PM, Horst Jäger <h.jaeger at medienkonzepte.de>wrote:

> Hi,
>
> I would like to create my own lib "hotte.py" which I can import like
>
>
>        import string,hotte
>
> . How do I do that?
>

1) Have the hotte.py in the same directory of any of your other Python code
that imports it, or
2) Put the hotte.py file in the Python import directive, whose location I do
not know in Mac.. someone else will know, I'm sure =]

All in all, I'm pretty sure you don't have to compile it or anything, but it
can be an option.

Cheers,
Xav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090819/8f259945/attachment-0001.html>


More information about the Python-list mailing list