mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
fix broken startup on macOS due to incorrect mpv path
This commit is contained in:
parent
13de09d783
commit
a447c3eb12
1 changed files with 1 additions and 4 deletions
|
@ -235,12 +235,9 @@ def _packagedCmd(cmd: list[str]) -> tuple[Any, dict[str, str]]:
|
|||
if "LD_LIBRARY_PATH" in env:
|
||||
del env["LD_LIBRARY_PATH"]
|
||||
|
||||
packaged_path = (
|
||||
Path(sys.prefix).joinpath("audio").joinpath(cmd[0] + ".exe" if isWin else "")
|
||||
)
|
||||
packaged_path = Path(sys.prefix) / "audio" / (cmd[0] + (".exe" if isWin else ""))
|
||||
if packaged_path.exists():
|
||||
cmd[0] = str(packaged_path)
|
||||
return cmd, env
|
||||
|
||||
return cmd, env
|
||||
|
||||
|
|
Loading…
Reference in a new issue