Re: How to create ones own lib

2009-08-19 Thread Nick Craig-Wood
Horst Jäger wrote: > I would like to create my own lib "hotte.py" which I can import like > > import string,hotte > > . How do I do that? One of the nice things about python is that you don't need to do anything special to define a library. Just define your classes / functions in hotte

Re: How to create ones own lib

2009-08-19 Thread Francesco Bochicchio
On 19 Ago, 11:00, Horst Jäger 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? > > I'm working on MacOS 10.5.6 . > > Thanks in advance Just create the file 'hotte.py' and place it somewhere python can fin

Re: How to create ones own lib

2009-08-19 Thread Xavier Ho
On Wed, Aug 19, 2009 at 7:00 PM, Horst Jäger 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

How to create ones own lib

2009-08-19 Thread Horst Jäger
Hi, I would like to create my own lib "hotte.py" which I can import like import string,hotte . How do I do that? I'm working on MacOS 10.5.6 . Thanks in advance -- http://mail.python.org/mailman/listinfo/python-list