Something works in Python but not in cgi.

Miki Tebeka miki.tebeka at gmail.com
Fri Oct 14 09:37:02 EDT 2011


The working directory of the webserver is probably not the one of the script. You should specify full path to the file. One way to do it is:
    
    from os.path import dirname, join
    filename = join(dirname(__file__), 'gri30.cti')

HTH
--
Miki Tebeka <miki.tebeka at gmail.com>
http://pythonwise.blogspot.com




More information about the Python-list mailing list