MCPcopy
hub / github.com/freedomofpress/dangerzone / update

Function update

dangerzone/windows/wsl.py:41–45  ·  view source on GitHub ↗

Update WSL kernel.

()

Source from the content-addressed store, hash-verified

39
40
41def update() -> None:
42 """Update WSL kernel."""
43 # NOTE: On Windows 11, running `wsl --update` somehow does not work with
44 # subprocess.run. It works via `ShellExecuteEx` though, which is what we use here.
45 shellexec.run(["wsl", "--update"], check=True)
46
47
48def is_installed() -> bool:

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected