Where to put the HTMLgen files

D

dont bother

Hi,
I have downloaded the HTMLgen for generating web pages
with python. However I untared and unzipped it. I
tried to link it with my path like this:

Heres my .bashrc file
--------------------------------------

GAIM=/usr/bin/
YAHOO=/usr/bin/
PYTHON=/usr/bin
HTMLgenPYTHON=/usr/local/HTMLgen
PATH=$PATH:$GAIM/gaim:$YAHOO/ymessenger:$PYTHON/python:$HTMLgenPYTHON


export PATH GAIM YAHOO PYTHON HTMLgenPYTHON


---------------------------------------

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?

Thanks
Dont





__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
 
P

Peter Otten

dont said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top