Skip to content

Commit f0c70a4

Browse files
committed
Use os.PathLike over pathlib.Path
Sphinx 7.1 and earlier don't use ``pathlib`` internally.
1 parent efbef0b commit f0c70a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sphinxcontrib/applehelp/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ def init(self) -> None:
7878
raise SphinxError(__('You must set applehelp_bundle_id before '
7979
'building Apple Help output'))
8080

81-
self.bundle_path = self.outdir / (self.config.applehelp_bundle_name + '.help')
82-
self.outdir = self.bundle_path.joinpath(
81+
self.bundle_path = path.join(self.outdir, self.config.applehelp_bundle_name + '.help')
82+
self.outdir = path.join(
83+
self.bundle_path,
8384
'Contents',
8485
'Resources',
8586
self.config.applehelp_locale + '.lproj',

0 commit comments

Comments
 (0)