fix: use correct venv path on Windows (Scripts/python.exe)

This commit is contained in:
2026-04-06 18:30:37 +02:00
parent a74e5022b3
commit 8fb8782e65
2 changed files with 13 additions and 1 deletions
+5 -1
View File
@@ -103,7 +103,11 @@ _RATIOS: dict[str, tuple[int, int]] = {
"1:1": (1, 1),
}
_VENV_PYTHON = str(Path.home() / ".8cut" / "venv" / "bin" / "python")
_VENV_PYTHON = str(
Path.home() / ".8cut" / "venv"
/ ("Scripts" if sys.platform == "win32" else "bin")
/ ("python.exe" if sys.platform == "win32" else "python")
)
_TOOLS_DIR = str(Path(__file__).parent / "tools")