Merge pull request #6401 from acncagua/wsl-open

wsl-open
This commit is contained in:
AUTOMATIC1111
2023-01-06 07:56:15 +03:00
committed by GitHub

View File

@@ -550,6 +550,8 @@ Requested path was: {f}
os.startfile(path)
elif platform.system() == "Darwin":
sp.Popen(["open", path])
elif "microsoft-standard-WSL2" in platform.uname().release:
sp.Popen(["wsl-open", path])
else:
sp.Popen(["xdg-open", path])