Commit 6122c120 authored by Thomas Heller's avatar Thomas Heller

re.sub expands escape sequences in it's second argument.

Will backport to 2.3 myself.
parent b7c95290
...@@ -208,7 +208,7 @@ class Options: ...@@ -208,7 +208,7 @@ class Options:
self.global_module_index = arg self.global_module_index = arg
elif opt == "--dir": elif opt == "--dir":
if os.sep == "\\": if os.sep == "\\":
arg = re.sub("/", "\\", arg) arg = re.sub("/", "\\\\", arg)
self.builddir = os.path.expanduser(arg) self.builddir = os.path.expanduser(arg)
elif opt == "--paper": elif opt == "--paper":
self.paper = arg self.paper = arg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment