summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Hilbrunner <m.hilbrunner@gmail.com>2022-01-24 10:30:07 +0100
committerMax Hilbrunner <m.hilbrunner@gmail.com>2022-01-24 10:30:07 +0100
commit26da72eb4b37c70e4306524dd843ef21f692e455 (patch)
tree26d9d3232ee3dff28f662f54125a69dd51ae07ae
parent57a057f7ff031f4593d851e351bc63fda77be535 (diff)
Fix make_rst.py on Windows
-rwxr-xr-xdoc/tools/make_rst.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py
index 9e18866ca3..68f3b66f43 100755
--- a/doc/tools/make_rst.py
+++ b/doc/tools/make_rst.py
@@ -438,7 +438,7 @@ def main(): # type: () -> None
for path in args.path:
# Cut off trailing slashes so os.path.basename doesn't choke.
- if path.endswith(os.sep):
+ if path.endswith("/") or path.endswith("\\"):
path = path[:-1]
if os.path.basename(path) == "modules":