Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Bugfix: correctly parse log_dir option (#932)

Philipp Imhof68ee6a1b1588
diff --git a/manim/_config/utils.py b/manim/_config/utils.py
index a6ae43533..1382a5443 100644
--- a/manim/_config/utils.py
+++ b/manim/_config/utils.py
@@ -753,8 +753,9 @@ class ManimConfig(MutableMapping):
def log_to_file(self, val: str) -> None:
self._set_boolean("log_to_file", val)
if val:
- if not os.path.exists(self["log_dir"]):
- os.makedirs(self["log_dir"])
+ log_dir = self.get_dir("log_dir")
+ if not os.path.exists(log_dir):
+ os.makedirs(log_dir)
set_file_logger(self, self["verbosity"])
sound = property(
diff --git a/tests/test_logging/basic_scenes_wirte_stuff.py b/tests/test_logging/basic_scenes_write_stuff.py
similarity index 100%
rename from tests/test_logging/basic_scenes_wirte_stuff.py
rename to tests/test_logging/basic_scenes_write_stuff.py