]> granicus.if.org Git - python/commitdiff
When the HTML output dir is specified using --dir=~/foo, the tilde
authorFred Drake <fdrake@acm.org>
Tue, 1 Oct 2002 15:30:56 +0000 (15:30 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 1 Oct 2002 15:30:56 +0000 (15:30 +0000)
needs to be expanded by mkhowto, since the shell won't touch it except
at the start of the complete argument.

Doc/tools/mkhowto

index 4fe97fb84f3246c0c6bff11c3afd2835e6f3e1f3..d0ab63c48d84c0754e801a10e084645fc0d60194 100755 (executable)
@@ -205,7 +205,7 @@ class Options:
             elif opt == "--dir":
                 if os.sep == "\\":
                     arg = re.sub("/", "\\", arg)
-                self.builddir = arg
+                self.builddir = os.path.expanduser(arg)
             elif opt == "--paper":
                 self.paper = arg
             elif opt == "--dvips-safe":