From caa8dc45222b35d360c24bf36835a7d8e6d86df2 Mon Sep 17 00:00:00 2001 From: Scott Main Date: Mon, 29 Jul 2024 17:45:36 -0700 Subject: [PATCH] Fix PosixPath issue with Sphinx 7.2 (#964) --- breathe/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/breathe/project.py b/breathe/project.py index 865236e80..f5b780a4e 100644 --- a/breathe/project.py +++ b/breathe/project.py @@ -113,7 +113,7 @@ def __init__(self, app: Sphinx): # Assume general build directory is the doctree directory without the last component. # We strip off any trailing slashes so that dirname correctly drops the last part. # This can be overridden with the breathe_build_directory config variable - self._default_build_dir = os.path.dirname(app.doctreedir.rstrip(os.sep)) + self._default_build_dir = os.path.dirname(str(app.doctreedir).rstrip(os.sep)) self.project_count = 0 self.project_info_store: Dict[str, ProjectInfo] = {} self.project_info_for_auto_store: Dict[str, AutoProjectInfo] = {}