Skip to content

Commit 3930a1c

Browse files
committed
Use the _StrPath proxy for sphinx.application
1 parent 768c6b7 commit 3930a1c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sphinx/application.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from sphinx.project import Project
2727
from sphinx.registry import SphinxComponentRegistry
2828
from sphinx.util import docutils, logging
29-
from sphinx.util._pathlib import _StrPath
29+
from sphinx.util._pathlib import _StrPath, _StrPathProperty
3030
from sphinx.util.build_phase import BuildPhase
3131
from sphinx.util.console import bold
3232
from sphinx.util.display import progress_message
@@ -140,6 +140,11 @@ class Sphinx:
140140
warningiserror: Final = False
141141
_warncount: int
142142

143+
srcdir = _StrPathProperty()
144+
confdir = _StrPathProperty()
145+
outdir = _StrPathProperty()
146+
doctreedir = _StrPathProperty()
147+
143148
def __init__(self, srcdir: str | os.PathLike[str], confdir: str | os.PathLike[str] | None,
144149
outdir: str | os.PathLike[str], doctreedir: str | os.PathLike[str],
145150
buildername: str, confoverrides: dict | None = None,

0 commit comments

Comments
 (0)