Skip to content

Commit

Permalink
Cast relative_file_path to Path, convert to posix path
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperWA committed Aug 22, 2023
1 parent 2b1a956 commit d601906
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci_cd/tasks/api_reference_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ def write_file(full_path: Path, content: str) -> None:
print("filename:", filename, flush=True)
print("py_path:", py_path, flush=True)

relative_file_path = (
relative_file_path = Path(
str(filename) if str(relpath) == "." else str(relpath / filename)
)
).as_posix()

# For special files we want to include EVERYTHING, even if it doesn't
# have a doc-string
Expand Down

0 comments on commit d601906

Please sign in to comment.