python script from crond help

Tuca Atuc atuc at gmx.de
Sat Jan 5 07:38:47 EST 2002


hallo,

i tried to start a python script from crond. simple scripts worke fine but
when i use a scrip that imports the httplib i get an error. the script
normally produces no error.

X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/atuc>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=atuc>

Traceback (innermost last):
  File "goog_search.py", line 7, in ?
    h = httplib.HTTPConnection(server)      #start HTTP/1.1
AttributeError: HTTPConnection


where can i set the lib path on an linux box that python will find its
librarys?

thancs,
atuc







More information about the Python-list mailing list