Re: [Tutor] sys.path.append issues with cgi

2005-04-18 Thread Gabriel Farrell
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

Re: [Tutor] sys.path.append issues with cgi

2005-04-14 Thread Gabriel Farrell
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

[Tutor] sys.path.append issues with cgi

2005-04-14 Thread Gabriel Farrell
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