Update WSL kernel.
()
| 39 | |
| 40 | |
| 41 | def 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 | |
| 48 | def is_installed() -> bool: |