From 4a1633acc32477e0e794de57a35b3ffa648313dd Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Sat, 17 Mar 2012 09:08:49 -0600 Subject: [PATCH] fixed printing to stderr. display a simple error message if vte isn't found, we're running crussh from the command line anyways. --- crussh.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crussh.py b/crussh.py index 757faf9..00a1d40 100755 --- a/crussh.py +++ b/crussh.py @@ -10,16 +10,17 @@ import sys import math import json import os.path + try: import gtk except: - print(sys.stderr, "Missing Python GTK2 bindings.") + print >>sys.stderr, "Missing Python GTK2 bindings." + sys.exit(1) + try: import vte except: - error = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, - "Missing Python VTE bindings.") - error.run() + print >>sys.stderr, "Missing Python VTE bindings." sys.exit(1) ### Config Dialog ###