Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0e066a

Browse files
committed
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.
1 parent dd868d3 commit c0e066a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/tools/mkhowto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class Options:
205205
elif opt == "--dir":
206206
if os.sep == "\\":
207207
arg = re.sub("/", "\\", arg)
208-
self.builddir = arg
208+
self.builddir = os.path.expanduser(arg)
209209
elif opt == "--paper":
210210
self.paper = arg
211211
elif opt == "--dvips-safe":

0 commit comments

Comments
 (0)