From 3393bf616b91e8a1bb6c0d006196ff0198ebe438 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Wed, 3 Apr 2019 21:10:20 -0700 Subject: [PATCH] Fix --preview on cygwin --- manimlib/extract_scene.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manimlib/extract_scene.py b/manimlib/extract_scene.py index 00acc778..143e338c 100644 --- a/manimlib/extract_scene.py +++ b/manimlib/extract_scene.py @@ -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")