A community-maintained Python framework for creating mathematical animations.
Fix --preview on cygwin
Pokechu223393bf616b91
diff --git a/manimlib/extract_scene.py b/manimlib/extract_scene.pyindex 00acc7786..143e338cc 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 macOScommands.append("open")