Skip to content

Commit

Permalink
Use os.PathLike over pathlib.Path
Browse files Browse the repository at this point in the history
Sphinx 7.1 and earlier don't use ``pathlib`` internally.
  • Loading branch information
AA-Turner committed Aug 14, 2023
1 parent efbef0b commit f0c70a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sphinxcontrib/applehelp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit f0c70a4

Please sign in to comment.