]> arthur.barton.de Git - bup.git/commitdiff
cmd/help: earlier path.exedir() change made it not find manpages correctly.
authorAvery Pennarun <apenwarr@gmail.com>
Tue, 1 Feb 2011 09:47:09 +0000 (01:47 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 1 Feb 2011 09:51:18 +0000 (01:51 -0800)
...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>
cmd/help-cmd.py

index 796ddbfabcae0d94b3b0c43a5bb49c1adfebd790..c2b84c895044581b4d705f7412bbf0ed7aee468d 100755 (executable)
@@ -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]])