Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Show ouput of open_file_if_needed only on DEBUG

azarzadavila4f3903623181
diff --git a/manim/__main__.py b/manim/__main__.py
index fed9b7827..d452f956e 100644
--- a/manim/__main__.py
+++ b/manim/__main__.py
@@ -17,7 +17,7 @@ from .logger import logger,console
def open_file_if_needed(file_writer):
- if file_writer_config["quiet"]:
+ if file_writer_config["verbose"] != "DEBUG":
curr_stdout = sys.stdout
sys.stdout = open(os.devnull, "w")
@@ -56,7 +56,7 @@ def open_file_if_needed(file_writer):
sp.call(commands, stdout=FNULL, stderr=sp.STDOUT)
FNULL.close()
- if file_writer_config["quiet"]:
+ if file_writer_config["verbose"] != "DEBUG":
sys.stdout.close()
sys.stdout = curr_stdout