From: Fred Drake <fdrake@acm.org> Date: Tue, 1 Oct 2002 15:30:56 +0000 (+0000) Subject: When the HTML output dir is specified using --dir=~/foo, the tilde X-Git-Tag: v2.3c1~3913 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0e066a7b8f4de89efe683d48fa1a5d70a0b6160;p=python When the HTML output dir is specified using --dir=~/foo, the tilde needs to be expanded by mkhowto, since the shell won't touch it except at the start of the complete argument. --- diff --git a/Doc/tools/mkhowto b/Doc/tools/mkhowto index 4fe97fb84f..d0ab63c48d 100755 --- a/Doc/tools/mkhowto +++ b/Doc/tools/mkhowto @@ -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":