From 304fe53b3200641905b18ca8cba52a5416f36503 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Sun, 9 Nov 2025 23:48:40 +0000 Subject: Move comment about tag handling --- pydis_core/exts/source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydis_core/exts/source.py b/pydis_core/exts/source.py index 1fc2aa02..32c0f0a5 100644 --- a/pydis_core/exts/source.py +++ b/pydis_core/exts/source.py @@ -142,7 +142,6 @@ class SourceCode(commands.Cog, description="Displays information about the bot's first_line_no = None lines_extension = "" - # Handle tag file location differently than others to avoid errors in some cases if not first_line_no: file_location = Path(filename) elif source_type == _SourceType.core_command: @@ -154,6 +153,7 @@ class SourceCode(commands.Cog, description="Displays information about the bot's internal_location = Path(filename).relative_to(package_location).as_posix() file_location = "pydis_core/exts/" + internal_location else: + # Handle tag file location differently than others to avoid errors in some cases file_location = Path(filename).relative_to(Path.cwd()).as_posix() repo = self.github_repo if source_type != _SourceType.core_command else BOT_CORE_REPO -- cgit v1.2.3