From 6de20b85e0e9bf665ba758009b37a2f5ebb50f1d Mon Sep 17 00:00:00 2001 From: nex Date: Wed, 22 Mar 2023 22:35:03 +0000 Subject: [PATCH] fix binary location --- cogs/other.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/other.py b/cogs/other.py index 6672642..3d184ba 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -771,7 +771,7 @@ class OtherCog(commands.Cog): await ctx.defer() await ctx.edit(content="Downloading video...") try: - venv = Path.cwd() / "venv" + venv = Path.cwd() / "venv" / ("Scripts" if os.name == "nt" else "bin") if venv: venv = venv.absolute().resolve() if str(venv) not in os.environ["PATH"]: