* usr/bin/byobu-config: LP: #1125469

- define error() function
This commit is contained in:
Dustin Kirkland 2013-05-08 13:32:02 -05:00
commit f6c72afa78
2 changed files with 11 additions and 0 deletions

2
debian/changelog vendored
View file

@ -10,6 +10,8 @@ byobu (5.40) unreleased; urgency=low
- rephrase window rename help text - rephrase window rename help text
* usr/bin/byobu-config: LP: #1166058 * usr/bin/byobu-config: LP: #1166058
- handle non-existant keybindings file - handle non-existant keybindings file
* usr/bin/byobu-config: LP: #1125469
- define error() function
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 07 May 2013 22:01:40 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 07 May 2013 22:01:40 -0500

View file

@ -29,11 +29,20 @@ import string
import subprocess import subprocess
import gettext import gettext
import glob import glob
def error(msg):
print("ERROR: %s" % msg)
sys.exit(1)
try: try:
import snack import snack
from snack import * from snack import *
except: except:
error("Could not import the python snack module") error("Could not import the python snack module")
PKG = "byobu" PKG = "byobu"
HOME = os.getenv("HOME") HOME = os.getenv("HOME")
USER = os.getenv("USER") USER = os.getenv("USER")