Merge pull request #15968 from AUTOMATIC1111/wsl-open
replace wsl-open with wslpath and explorer.exe
This commit is contained in:
commit
194c2620d6
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue