Merge pull request #486 from Pokechu22/cygstart

Fix --preview on cygwin
This commit is contained in:
Devin Neal
2019-04-03 21:34:55 -07:00
committed by GitHub

View File

@ -35,8 +35,10 @@ def open_file_if_needed(file_writer, **config):
os.startfile(file_path)
else:
commands = []
if (current_os == "Linux"):
if current_os == "Linux":
commands.append("xdg-open")
elif current_os.startswith("CYGWIN"):
commands.append("cygstart")
else: # Assume macOS
commands.append("open")