diff -r cdb4ed8660c5 -r 574631f841c3 index.py --- a/index.py Wed Sep 24 17:51:18 2003 -0400 +++ b/index.py Thu Sep 25 11:02:05 2003 -0400 @@ -2,12 +2,13 @@ import sys import traceback -sys.path.insert(0, "/home/fabien/lib/python") -sys.path.insert(0, "./lib") -sys.stderr = sys.stdout +if (__name__ == '__main__'): + sys.path.insert(0, "/home/fabien/lib/python") + sys.path.insert(0, "./lib") + sys.stderr = sys.stdout -print "Content-type: text/html; charset=iso-8859-1;" -print + print "Content-type: text/html; charset=iso-8859-1;" + print # import cgitb; cgitb.enable() import cgi