mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 03:07:45 +00:00
Fix --preview on cygwin
This commit is contained in:
parent
b51d1bf6b1
commit
3393bf616b
1 changed files with 3 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue