mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +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)
|
os.startfile(file_path)
|
||||||
else:
|
else:
|
||||||
commands = []
|
commands = []
|
||||||
if (current_os == "Linux"):
|
if current_os == "Linux":
|
||||||
commands.append("xdg-open")
|
commands.append("xdg-open")
|
||||||
|
elif current_os.startswith("CYGWIN"):
|
||||||
|
commands.append("cygstart")
|
||||||
else: # Assume macOS
|
else: # Assume macOS
|
||||||
commands.append("open")
|
commands.append("open")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user