Skip to content

Commit 6822015

Browse files
mondejabehackl
andauthored
Fix 'manim cfg export' subcommand (#989)
Co-authored-by: Benjamin Hackl <[email protected]>
1 parent 9fb1a16 commit 6822015

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manim/_config/cfg_subcmds.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,12 @@ def export(path):
238238
else:
239239
proceed = True
240240
if proceed:
241+
parser = make_config_parser()
241242
if not os.path.isdir(path):
242243
console.print(f"Creating folder: {path}.", style="red bold")
243244
os.mkdir(path)
244245
with open(os.path.join(path, "manim.cfg"), "w") as outpath:
245-
config.write(outpath)
246+
parser.write(outpath)
246247
from_path = os.path.join(os.getcwd(), "manim.cfg")
247248
to_path = os.path.join(path, "manim.cfg")
248249
console.print(f"Exported final Config at {from_path} to {to_path}.")

0 commit comments

Comments
 (0)