diff options
| author | Huang Peng <shawn.p.huang@gmail.com> | 2008-06-14 00:17:14 +0800 |
|---|---|---|
| committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-06-14 00:17:14 +0800 |
| commit | ad600ae81ce32bde12ce6d08ed415abdbeaa4e87 (patch) | |
| tree | fce5416f15fe2f222efe377ca776498cc0eec37c /ibus/common.py | |
| parent | 5448bc0e1bb7eb94f2df67832d38fccd6307c8ad (diff) | |
| download | ibus-ad600ae81ce32bde12ce6d08ed415abdbeaa4e87.tar.gz ibus-ad600ae81ce32bde12ce6d08ed415abdbeaa4e87.tar.xz ibus-ad600ae81ce32bde12ce6d08ed415abdbeaa4e87.zip | |
WIP.
Diffstat (limited to 'ibus/common.py')
| -rw-r--r-- | ibus/common.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ibus/common.py b/ibus/common.py index aac76de..303e236 100644 --- a/ibus/common.py +++ b/ibus/common.py @@ -1,5 +1,6 @@ -import getpass import os +import sys +import getpass IBUS_ADDR = "unix:path=/tmp/ibus-%s/ibus-%s" % (getpass.getuser (), os.environ["DISPLAY"].replace (":", "-")) # IBUS_ADDR = "tcp:host=localhost,port=7799" @@ -17,7 +18,8 @@ def default_reply_handler ( *args): pass def default_error_handler (e): - print e + print >> sys.stderr, e + sys.exit (1) DEFAULT_ASYNC_HANDLERS = { "reply_handler" : default_reply_handler, |
