mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
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:
parent
0b33391f90
commit
cc61bb49f2
1 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue