mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Use addict.Dict for scene config
This commit is contained in:
parent
0b350e248b
commit
9ae5b4dee3
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from addict import Dict
|
||||||
|
|
||||||
from manimlib import __version__
|
from manimlib import __version__
|
||||||
from manimlib.config import manim_config
|
from manimlib.config import manim_config
|
||||||
from manimlib.config import parse_cli
|
from manimlib.config import parse_cli
|
||||||
|
@ -21,7 +23,7 @@ def run_scenes():
|
||||||
"""
|
"""
|
||||||
# Create a new dict to be able to upate without
|
# Create a new dict to be able to upate without
|
||||||
# altering global configuration
|
# altering global configuration
|
||||||
scene_config = dict(manim_config.scene)
|
scene_config = Dict(manim_config.scene)
|
||||||
run_config = manim_config.run
|
run_config = manim_config.run
|
||||||
|
|
||||||
if run_config.show_in_window:
|
if run_config.show_in_window:
|
||||||
|
|
Loading…
Add table
Reference in a new issue