fix binary location

This commit is contained in:
Nexus 2023-03-22 22:35:03 +00:00
parent 3e365830d6
commit 6de20b85e0

View file

@ -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"]: