Skip to content

Commit 94265f6

Browse files
committed
chore(present): warn about old configuration file
1 parent 6ed76ff commit 94265f6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

manim_slides/present.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,15 @@ def present(
10461046
for presentation_config in presentation_configs
10471047
]
10481048

1049+
# TODO: remove me in v5
1050+
if config_path.suffix == ".json" or Path(".manim-slides.json").exists():
1051+
logger.warn(
1052+
"Manim Slides now uses a TOML file for configuration. "
1053+
"Please create a new configuration file with `manim-slides init` "
1054+
"and move all the keys from your old config, if needed. "
1055+
"Then, delete your old JSON config file."
1056+
)
1057+
10491058
if config_path.exists():
10501059
try:
10511060
config = Config.from_file(config_path)

0 commit comments

Comments
 (0)