Skip to content

Commit 39f4f30

Browse files
committed
Use pathlib method for app.srcdir
1 parent 24ef40e commit 39f4f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage_docbuild/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ def setup(app):
869869

870870
# When building the standard docs, app.srcdir is set to SAGE_DOC_SRC +
871871
# 'LANGUAGE/DOCNAME'.
872-
if app.srcdir.startswith(SAGE_DOC_SRC):
872+
if app.srcdir.is_relative_to(SAGE_DOC_SRC):
873873
app.add_config_value('intersphinx_mapping', {}, False)
874874
app.add_config_value('intersphinx_cache_limit', 5, False)
875875
app.add_config_value('intersphinx_disabled_reftypes', [], False)

0 commit comments

Comments
 (0)