Changeset 3294 for pykota/trunk/bin/pykosd
- Timestamp:
- 01/18/08 23:39:41 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pykosd
r3288 r3294 30 30 import pyosd 31 31 except ImportError : 32 sys.stderr.write("Sorry ! You need both xosd and the Python OSD library (pyosd) for this software to work.\n")32 logerr("Sorry ! You need both xosd and the Python OSD library (pyosd) for this software to work.\n") 33 33 sys.exit(-1) 34 35 import pykota.appinit 36 from pykota.utils import * 34 37 35 38 from pykota.errors import PyKotaToolError, PyKotaCommandLineError … … 192 195 retcode = 0 193 196 except KeyboardInterrupt : 194 sys.stderr.write("\nInterrupted with Ctrl+C !\n")197 logerr("\nInterrupted with Ctrl+C !\n") 195 198 retcode = -3 196 199 except PyKotaCommandLineError, msg : 197 sys.stderr.write("%s : %s\n" % (sys.argv[0], msg))200 logerr("%s : %s\n" % (sys.argv[0], msg)) 198 201 retcode = -2 199 202 except SystemExit :