Skip to content

Commit

Permalink
Accommodate newer Sphinx versions that use pathlib
Browse files Browse the repository at this point in the history
  • Loading branch information
ayshih committed Aug 10, 2023
1 parent 8801a8c commit 5f0632e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx_automodapi/automodsumm.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def get_members_class(obj, typ, include_public=[],
# An important subtlety here is that the path we pass in has
# to be relative to the file being generated, so we have to
# figure out the right number of '..'s
ndirsback = path.replace(base_path, '').count(os.sep)
ndirsback = path.replace(str(base_path), '').count(os.sep)
ref_file_rel_segments = ['..'] * ndirsback
ref_file_rel_segments.append(mod_name_dir)
ref_file_rel_segments.append('references.txt')
Expand Down

0 comments on commit 5f0632e

Please sign in to comment.