From f0c70a4c18620ad6fd5f5fe7463e63cf1e87f229 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Mon, 14 Aug 2023 16:57:20 +0100 Subject: [PATCH] Use ``os.PathLike`` over ``pathlib.Path`` Sphinx 7.1 and earlier don't use ``pathlib`` internally. --- sphinxcontrib/applehelp/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sphinxcontrib/applehelp/__init__.py b/sphinxcontrib/applehelp/__init__.py index ddec81e..aff78f4 100644 --- a/sphinxcontrib/applehelp/__init__.py +++ b/sphinxcontrib/applehelp/__init__.py @@ -78,8 +78,9 @@ def init(self) -> None: raise SphinxError(__('You must set applehelp_bundle_id before ' 'building Apple Help output')) - self.bundle_path = self.outdir / (self.config.applehelp_bundle_name + '.help') - self.outdir = self.bundle_path.joinpath( + self.bundle_path = path.join(self.outdir, self.config.applehelp_bundle_name + '.help') + self.outdir = path.join( + self.bundle_path, 'Contents', 'Resources', self.config.applehelp_locale + '.lproj',