From 9e2ff02405a162549b022ab6dacef72d90c389a4 Mon Sep 17 00:00:00 2001 From: Robin <74519799+Robin5605@users.noreply.github.com> Date: Sat, 25 Nov 2023 15:14:14 -0600 Subject: Make tag file location not relative to bot (#2795) --- bot/exts/info/source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/info/source.py b/bot/exts/info/source.py index 4d2a9f38f..1c3387e53 100644 --- a/bot/exts/info/source.py +++ b/bot/exts/info/source.py @@ -69,7 +69,7 @@ class BotSource(commands.Cog): # 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() -- cgit v1.2.3