Merge pull request #15968 from AUTOMATIC1111/wsl-open

replace wsl-open with wslpath and explorer.exe
This commit is contained in:
AUTOMATIC1111 2024-06-08 12:30:11 +03:00 committed by GitHub
commit 194c2620d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -208,6 +208,6 @@ Requested path was: {path}
elif platform.system() == "Darwin":
subprocess.Popen(["open", path])
elif "microsoft-standard-WSL2" in platform.uname().release:
subprocess.Popen(["wsl-open", path])
subprocess.Popen(["explorer.exe", subprocess.check_output(["wslpath", "-w", path])])
else:
subprocess.Popen(["xdg-open", path])