| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11490/root/usr/lib/python2.6/site-packages/ |
Upload File : |
# ABRT crash hook
#
# This special script is placed in
# /usr/local/lib/pythonNNN/site-packages/sitecustomize.py
# and python interpreter runs it automatically everytime
# some python script is executed.
config = None
conf = {}
try:
config = open("/etc/abrt/pyhook.conf","r")
except:
# Silently ignore if file doesn't exist.
pass
try:
if config:
# we expect config in form
# key = value
# Enabled = yes
# this should strip
line = config.readline().lower().replace(' ','').strip('\n').split('=')
conf[line[0]] = line[1]
except:
# Ignore silently everything, because we don't want to bother user
# if this hook doesn't work.
pass
if conf.has_key("enabled"):
# Prevent abrt exception handler from running when the abrtd daemon is
# not active.
# abrtd sets the value to "no" when deactivated and vice versa.
if conf["enabled"] == "yes":
try:
from abrt_exception_handler import *
installExceptionHandler(debug = 1)
except Exception, e:
# FIXME don't print anything, write it to some log file
print e
pass