From f59f9785552343f2f56e6a6ff3d6882911e870ab Mon Sep 17 00:00:00 2001 From: James Addison <55152140+jayaddison@users.noreply.github.com> Date: Fri, 3 Jan 2025 05:45:58 +0000 Subject: [PATCH] Fix path resolution during 'sphinx.cmd.make_mode' cleanup (#13158) --- sphinx/cmd/make_mode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/cmd/make_mode.py b/sphinx/cmd/make_mode.py index 5966b628a..7642b6229 100644 --- a/sphinx/cmd/make_mode.py +++ b/sphinx/cmd/make_mode.py @@ -87,7 +87,7 @@ class Make: return 1 print("Removing everything under '%s'..." % self.build_dir) for item in self.build_dir.iterdir(): - rmtree(self.build_dir_join(item)) + rmtree(item) return 0 def build_help(self) -> None: