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
+8
View File
@@ -32,6 +32,14 @@ pip install -r requirements.txt
For mask generation tools, additional dependencies (PyTorch, transformers, segment-anything-2, opencv) are installed into `~/.8cut/venv/` via the Settings dialog. For mask generation tools, additional dependencies (PyTorch, transformers, segment-anything-2, opencv) are installed into `~/.8cut/venv/` via the Settings dialog.
### Platform notes
**Linux** — install libmpv via your package manager (`apt install libmpv-dev` / `pacman -S mpv`).
**macOS** — install libmpv via Homebrew: `brew install mpv`.
**Windows**`python-mpv` requires `mpv-2.dll` in `PATH` or in the same directory as `main.py`. Download it from the [mpv Windows builds](https://sourceforge.net/projects/mpv-player-windows/files/libmpv/) page (pick the latest `mpv-dev-x86_64-*.7z`, extract `mpv-2.dll`). Also ensure `ffmpeg.exe` is in `PATH` (e.g. via [winget](https://winget.run/): `winget install ffmpeg`).
## Usage ## Usage
``` ```
+5 -1
View File
@@ -103,7 +103,11 @@ _RATIOS: dict[str, tuple[int, int]] = {
"1:1": (1, 1), "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") _TOOLS_DIR = str(Path(__file__).parent / "tools")