From a4b0d2741cc218e469b02fe62758804ebb628d2b Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Wed, 23 Aug 2023 01:23:23 -0700 Subject: [PATCH] sphinxtogithub: keep the trailing / separator def relative_path() relies on being able to replace values including the / separator. Keep it there to retain the original behavior. Related-to: #1336 Ref: 1293e189ee79703e23870f37feda61b44f635a98 Signed-off-by: David Aguilar --- extras/sphinxtogithub/sphinxtogithub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/sphinxtogithub/sphinxtogithub.py b/extras/sphinxtogithub/sphinxtogithub.py index 2f3da9058..685fcdf55 100644 --- a/extras/sphinxtogithub/sphinxtogithub.py +++ b/extras/sphinxtogithub/sphinxtogithub.py @@ -97,7 +97,7 @@ class DirectoryHandler: def __init__(self, name, root, renamer): self.name = name self.new_name = name[1:] - self.root = str(root) + self.root = str(root) + os.sep self.renamer = renamer def path(self):