Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ayshih committed Aug 9, 2023
1 parent 8801a8c commit a716086
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinx_automodapi/automodsumm.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ def patched_generate_dot(self, name, urls={}, env=None,
graph_attrs={}, node_attrs={}, edge_attrs={}):
# Make a new mapping dictionary that uses class full names by importing each
# class documented name
print(urls)
fullname_urls = {self.class_name(try_import(name), 0, None): url
for name, url in urls.items()}
return old_generate_dot(self, name, urls=fullname_urls, env=env,
Expand Down Expand Up @@ -663,7 +664,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 a716086

Please sign in to comment.