diff options
author | Johan Dahlin <johan@src.gnome.org> | 2006-04-06 07:32:25 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2006-04-06 07:32:25 +0000 |
commit | a2d1f799a1aa6fa8ce8d40a9cb0da8facaa5d6a1 (patch) | |
tree | ff0de8b9e50e81d9d7621aaf612c928f9f0a2664 /gtk/__init__.py | |
parent | add6950ae38d0fc2e5b2a70f26c780046016f3b3 (diff) | |
download | pygtk-a2d1f799a1aa6fa8ce8d40a9cb0da8facaa5d6a1.tar.gz |
Add log handlers here
* gtk/__init__.py (_init): Add log handlers here
* gtk/gtk.override (_wrap_remove_log_handlers): New function,
makes it possible to remove the handlers pygtk installs.
Fixes #323786
Diffstat (limited to 'gtk/__init__.py')
-rw-r--r-- | gtk/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/__init__.py b/gtk/__init__.py index 5ea880df..44c97cfb 100644 --- a/gtk/__init__.py +++ b/gtk/__init__.py @@ -107,6 +107,8 @@ def _is_pydoc(): def _init(): import sys + + try: sys_path = sys.path[:] @@ -120,6 +122,9 @@ def _init(): if sys.path != sys_path: sys.path = sys_path + # install the default log handlers + add_log_handlers() + threads_init = gdk.threads_init threads_enter = gdk.threads_enter threads_leave = gdk.threads_leave |