From cc61bb49f2589b9a95f86d07a84e6610ea538928 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Fri, 15 May 2009 13:32:09 +0100 Subject: [PATCH] use globs to handle ubuntu/fedora difference in /usr/share/doc/byobu* Signed-off-by: Dustin Kirkland --- byobu-config | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/byobu-config b/byobu-config index 24e74b76..d79df624 100755 --- a/byobu-config +++ b/byobu-config @@ -22,7 +22,7 @@ # ./debian/rules get-po -import sys, os, os.path, time, string, commands, gettext +import sys, os, os.path, time, string, commands, gettext, glob from ConfigParser import SafeConfigParser from snack import * @@ -107,9 +107,10 @@ def messagebox(screen, width, height, title, text, \ return bb.buttonPressed(g.runOnce()) def help(screen, size, config): - f=file(DOC+'/help.txt') - text=f.read() - f.close() + for fn in glob.glob(DOC+'*/help.txt'): + f=file(fn) + text=f.read() + f.close() text=text.replace("", getesckey(), 1)