Fix mpv not working out of the box in win32 source build

Regressed in 711c28e1a5
This commit is contained in:
Damien Elmes 2023-12-06 11:34:22 +10:00
parent 96ae3dce48
commit 425d9e3fe1
2 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,7 @@ pub fn run_build(args: BuildArgs) {
let path = if cfg!(windows) {
format!(
"out\\bin;out\\extracted\\node;node_modules\\.bin;out\\extracted\\win_amd64_audio;{};\\msys64\\usr\\bin",
"out\\bin;out\\extracted\\node;node_modules\\.bin;{};\\msys64\\usr\\bin",
env::var("PATH").unwrap()
)
} else {

View File

@ -5,6 +5,8 @@ import os
import sys
sys.path.extend(["pylib", "qt", "out/pylib", "out/qt"])
if sys.platform == "win32":
os.environ["PATH"] += ";out\\extracted\\win_amd64_audio"
import aqt