Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix 'manim cfg export' subcommand (#989)

Álvaro Mondéjar6822015c9455
diff --git a/manim/_config/cfg_subcmds.py b/manim/_config/cfg_subcmds.py
index fe7e6fac2..30195cb52 100644
--- a/manim/_config/cfg_subcmds.py
+++ b/manim/_config/cfg_subcmds.py
@@ -238,11 +238,12 @@ Are you sure you want to continue? (y/n)""",
else:
proceed = True
if proceed:
+ parser = make_config_parser()
if not os.path.isdir(path):
console.print(f"Creating folder: {path}.", style="red bold")
os.mkdir(path)
with open(os.path.join(path, "manim.cfg"), "w") as outpath:
- config.write(outpath)
+ parser.write(outpath)
from_path = os.path.join(os.getcwd(), "manim.cfg")
to_path = os.path.join(path, "manim.cfg")
console.print(f"Exported final Config at {from_path} to {to_path}.")