mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
replace wsl-open with wslpath and explorer.exe
This commit is contained in:
parent
801b72b92b
commit
510f025a01
@ -208,6 +208,6 @@ Requested path was: {path}
|
|||||||
elif platform.system() == "Darwin":
|
elif platform.system() == "Darwin":
|
||||||
subprocess.Popen(["open", path])
|
subprocess.Popen(["open", path])
|
||||||
elif "microsoft-standard-WSL2" in platform.uname().release:
|
elif "microsoft-standard-WSL2" in platform.uname().release:
|
||||||
subprocess.Popen(["wsl-open", path])
|
subprocess.Popen(["explorer.exe", subprocess.check_output(["wslpath", "-w", path])])
|
||||||
else:
|
else:
|
||||||
subprocess.Popen(["xdg-open", path])
|
subprocess.Popen(["xdg-open", path])
|
||||||
|
Loading…
Reference in New Issue
Block a user