Skip to content

Commit

Permalink
fixed [""] being set as loaded plugins (#3734)
Browse files Browse the repository at this point in the history
  • Loading branch information
behackl authored Apr 27, 2024
1 parent c4e7502 commit 6cb89a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion manim/_config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,12 @@ def digest_parser(self, parser: configparser.ConfigParser) -> Self:
setattr(self, "window_size", window_size)

# plugins
self.plugins = parser["CLI"].get("plugins", fallback="", raw=True).split(",")
plugins = parser["CLI"].get("plugins", fallback="", raw=True)
if plugins == "":
plugins = []
else:
plugins = plugins.split(",")
self.plugins = plugins
# the next two must be set AFTER digesting pixel_width and pixel_height
self["frame_height"] = parser["CLI"].getfloat("frame_height", 8.0)
width = parser["CLI"].getfloat("frame_width", None)
Expand Down

0 comments on commit 6cb89a0

Please sign in to comment.