Re: Something works in Python but not in cgi.

2011-10-14 Thread Miki Tebeka
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 http://pythonwise.blogspot.com -- http:

Something works in Python but not in cgi.

2011-10-14 Thread atalu...@gmail.com
Hi, I need to make work a programm on the Web. I make tests like Hello World and also with GET and it works good. The problem comes in the line gas = importPhase("gri30.cti") The computer donĀ“t find the file "gri30.cti"(this file was not in workspace), then I put it in the same folder and the prog