Skip to content

Commit

Permalink
Make tag file location not relative to bot (#2795)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin5605 authored Nov 25, 2023
1 parent 3b70dc8 commit 9e2ff02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/exts/info/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_source_link(self, source_item: SourceType) -> tuple[str, str, int | None

# Handle tag file location differently than others to avoid errors in some cases
if not first_line_no:
file_location = Path(filename).relative_to("bot/")
file_location = Path(filename)
else:
file_location = Path(filename).relative_to(Path.cwd()).as_posix()

Expand Down

0 comments on commit 9e2ff02

Please sign in to comment.