Skip to content

Commit

Permalink
Fixed bug involving incomplete index.html path in writeIndexHardlink
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Kimmel committed Aug 9, 2024
1 parent d32d495 commit 73d2120
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pydoctor/templatewriter/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ def writeIndexHardlink(self, system: model.System) -> None:
# not using missing_ok=True because that was only added in Python 3.8 and we still support Python 3.6
except FileNotFoundError:
pass
shutil.copy(root_module_path, 'index.html')
hardlink_path = (self.build_directory / 'index.html')
shutil.copy(hardlink_path, root_module_path)

def _writeDocsFor(self, ob: model.Documentable) -> None:
if not ob.isVisible:
Expand Down

0 comments on commit 73d2120

Please sign in to comment.