From ee6e5bd0a6febb9bd2afe0196e78466dd68960a3 Mon Sep 17 00:00:00 2001 From: dtookey Date: Fri, 2 Oct 2020 15:10:03 -0400 Subject: [PATCH] i'm an idiot --- commands/loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/loader.py b/commands/loader.py index fafc4ec..cab69b1 100644 --- a/commands/loader.py +++ b/commands/loader.py @@ -49,7 +49,7 @@ def get_base_dir() -> str: if current == 'commands': return check_dir(cwd) elif current == 'Praxis_Bot' or current == 'Praxis': - return check_dir(os.path.join(current, "commands")) + return check_dir(os.path.join(cwd, "commands")) else: print("could not find working directory for Praxis_Bot/commands") raise @@ -71,4 +71,4 @@ def check_dir(path: str) -> str: if __name__ == "__main__": cmds = load_commands() - cmds["!tts"].do_command("!tts let's do some shit") +