From 7cae48d0d6b47ef35df584d33e1456751358e93f Mon Sep 17 00:00:00 2001 From: Tessa Nordgren Date: Wed, 9 Aug 2017 14:30:59 -0700 Subject: [PATCH] Fixed to work on recent Ubuntu releases, and to update copyright. --- crussh.py | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/crussh.py b/crussh.py index cbaf2f3..8169833 100755 --- a/crussh.py +++ b/crussh.py @@ -1,7 +1,7 @@ -#!/usr/bin/env python +#!/usr/bin/python # A cssh replacement written in Python / GTK. -# (c)2012 - Graeme Humphries . +# (c)2012-2017 - Tessa Nordgren . # Released under the GPL, version 3: http://www.gnu.org/licenses/ # Requires: python-gtk2 python-vte @@ -10,21 +10,12 @@ import sys import math import json import os.path - -try: - import gtk -except: - print >>sys.stderr, "Missing Python GTK2 bindings." - sys.exit(1) - +import pygtk +pygtk.require('2.0') +import gtk +import vte from EntryDialog import EntryDialog -try: - import vte -except: - print >>sys.stderr, "Missing Python VTE bindings." - sys.exit(1) - ### Config Dialog ### class CruSSHConf: