use globs to handle ubuntu/fedora difference in

/usr/share/doc/byobu*

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-15 13:32:09 +01:00
commit cc61bb49f2

View file

@ -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("<esckey>", getesckey(), 1)