A follow-up to this post for future reference:
It appears that on my web host the cgi scripts run on a web server
that doesn't have access to the same python and python libs that are
available when I ssh in to my shell account. So it doesn't matter if
I change the sys.path, because the libs are s
Sorry, addendum to that post. The line
from ElementTree import Element, SubElement, tostring
should read
from elementtree.ElementTree import Element, SubElement, tostring
but that still doesn't work.
gabe
___
Tutor maillist - Tutor@python.org
h
Hello all,
I'm trying to modify the sys.path in my cgi scripts to import modules
that I've installed in my home directory. The top of the script reads
as follows:
#!/usr/local/bin/python
import cgi, sys
sys.path.append('/net/u/16/g/gsf/lib/python2.4/site-packages')
from ElementTree import Elem