From: Avery Pennarun Date: Tue, 1 Feb 2011 09:47:09 +0000 (-0800) Subject: cmd/help: earlier path.exedir() change made it not find manpages correctly. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=4fca320aa4b32417f71ebb92ab6e0211f96fc516;p=packages%2Fb%2Fbup.git cmd/help: earlier path.exedir() change made it not find manpages correctly. ...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 --- diff --git a/cmd/help-cmd.py b/cmd/help-cmd.py index 796ddbf..c2b84c8 100755 --- a/cmd/help-cmd.py +++ b/cmd/help-cmd.py @@ -14,7 +14,7 @@ if len(extra) == 0: 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]])