[3.x] Fix make_rst.py on Windows

This commit is contained in:
Max Hilbrunner 2022-01-24 10:28:22 +01:00
parent f2ec36fbcd
commit 54de063890
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,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":