Fix make_rst.py on Windows
This commit is contained in:
parent
57a057f7ff
commit
26da72eb4b
@ -438,7 +438,7 @@ def main(): # type: () -> None
|
|||||||
|
|
||||||
for path in args.path:
|
for path in args.path:
|
||||||
# Cut off trailing slashes so os.path.basename doesn't choke.
|
# 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]
|
path = path[:-1]
|
||||||
|
|
||||||
if os.path.basename(path) == "modules":
|
if os.path.basename(path) == "modules":
|
||||||
|
Loading…
Reference in New Issue
Block a user