...when the binary wasn't actually installed. Previously, it would use
sys.argv[0], which was the path to bup-help, but now it uses path.exedir(),
which has the path to bup, which is one directory up.
Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
elif len(extra) == 1:
docname = (extra[0]=='bup' and 'bup' or ('bup-%s' % extra[0]))
manpath = os.path.join(path.exedir(),
- '../Documentation/' + docname + '.[1-9]')
+ 'Documentation/' + docname + '.[1-9]')
g = glob.glob(manpath)
if g:
os.execvp('man', ['man', '-l', g[0]])