diff options
| author | 2025-11-09 23:48:40 +0000 | |
|---|---|---|
| committer | 2025-11-09 23:48:40 +0000 | |
| commit | 304fe53b3200641905b18ca8cba52a5416f36503 (patch) | |
| tree | 1331e7a4ca8c0a065c689a2a98742bab22a19750 | |
| parent | Replace __module__ with inspect.getmodule (diff) | |
Move comment about tag handling
| -rw-r--r-- | pydis_core/exts/source.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |