mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 14:03:59 +08:00
Merge pull request #486 from Pokechu22/cygstart
Fix --preview on cygwin
This commit is contained in:
@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user