Fix --preview on cygwin

This commit is contained in:
Pokechu22 2019-04-03 21:10:20 -07:00
parent b51d1bf6b1
commit 3393bf616b

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")