comparison bin/run_local.py @ 873:f6e4faa0422b

drop cgitb (again) Ignore-this: 4452f7b914a1e08bb561e69382e44671
author Drew Perttula <drewp@bigasterisk.com>
date Thu, 06 Jun 2013 08:23:08 +0000
parents 1f93e5d19f8a
children 167a61d3cfbf
comparison
equal deleted inserted replaced
872:5e097102e898 873:f6e4faa0422b
3 # this should be turned off when the programs are installed 3 # this should be turned off when the programs are installed
4 4
5 import sys,os 5 import sys,os
6 sys.path.insert(0,os.path.join(os.path.dirname(sys.argv[0]),"..")) 6 sys.path.insert(0,os.path.join(os.path.dirname(sys.argv[0]),".."))
7 7
8 import cgitb
9 from twisted.python.failure import Failure 8 from twisted.python.failure import Failure
10 9
11 import Tkinter 10 import Tkinter
12 def rce(self, exc, val, tb): 11 def rce(self, exc, val, tb):
13 sys.stderr.write("Exception in Tkinter callback\n") 12 sys.stderr.write("Exception in Tkinter callback\n")
28 def render_name(self, name): 27 def render_name(self, name):
29 return name 28 return name
30 29
31 log.addHandler(CSH(show_hostname=False, show_name=True)) 30 log.addHandler(CSH(show_hostname=False, show_name=True))
32 31
33 cgitb.enable(format='txt')
34 32