Some more logging to uncaught exceptions

This commit is contained in:
Ruud
2012-01-14 21:49:45 +01:00
parent f4a4bca7a9
commit e9094d4c6c
2 changed files with 10 additions and 1 deletions
+8
View File
@@ -32,6 +32,14 @@ class Env(object):
def get(attr):
return getattr(Env, '_' + attr)
@staticmethod
def all():
ret = ''
for attr in ['encoding', 'debug', 'args', 'app_dir', 'data_dir', 'desktop', 'options']:
ret += '%s=%s ' % (attr, Env.get(attr))
return ret
@staticmethod
def set(attr, value):
return setattr(Env, '_' + attr, value)