diff options
| author | 2025-11-09 23:48:40 +0000 | |
|---|---|---|
| committer | 2025-11-10 23:19:27 +0000 | |
| commit | 6242c29ed22b82f50263fd1d91608bf61b9efef7 (patch) | |
| tree | 3b7d8622d0d2ebe961425f5278371e3c6591e608 | |
| 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 6c84ae5f..c26be248 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 |