index.py
branchxbelweb
changeset 15 574631f841c3
parent 13 7357230539d2
child 17 14bec94bbe89
--- 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