Skip to content

Commit

Permalink
Merge pull request #15968 from AUTOMATIC1111/wsl-open
Browse files Browse the repository at this point in the history
replace wsl-open with wslpath and explorer.exe
  • Loading branch information
AUTOMATIC1111 authored Jun 8, 2024
2 parents 5ecfc20 + 510f025 commit 194c262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,6 @@ def open_folder(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])

0 comments on commit 194c262

Please sign in to comment.