You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
[3.x] Fix make_rst.py on Windows
(cherry picked from commit 54de063890)
This commit is contained in:
committed by
Rémi Verschelde
parent
a59bf9a3b2
commit
f00260f1b7
@@ -321,7 +321,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":
|
||||||
|
|||||||
Reference in New Issue
Block a user