Where to put the HTMLgen files
Peter Otten
__peter__ at web.de
Fri Apr 30 07:42:22 EDT 2004
dont bother wrote:
> It does not work. When I write a python program and
> include :
>
> import HTMLgen
>
> it does not finds this module. Can anyone tell me
> where should I place this HTMLgen directory? and how
> to make it work?
Put HTMLgen.py directly into the site-packages directory of your python
installation, e. g. /usr/local/lib/python2.3/site-packages/
or include the directory containing HTMLgen.py in the python search path by
defining an environment variable
PYTHONPATH=/dir/containing/my/module/
or put a text file dontbother.pth (only the suffix is important) containing
/dir/containing/my/module/
into a folder already in the python module search path, e. g. the
site-packages mentioned above.
Peter
More information about the Python-list
mailing list