Something works in Python but not in cgi.

atalucas at gmail.com atalucas at gmail.com
Fri Oct 14 06:30:51 EDT 2011


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 program crash.

Knows someone where is the problem???


#!D:\Python25\python.exe
print "Content-Type: text/html\n"
import cgitb; cgitb.enable()
import cgi
from workplace import *

gas = importPhase("gri30.cti")

print "<HTML><HEAD><TITLE>Cantera</TITLE></HEAD><BODY>"

  print '<INPUT type="submit" value="Absenden" name="Send">'
  print '</FORM>'
print "</BODY></HTML>"



More information about the Python-list mailing list