Skip to content

Commit 6cb89a0

Browse files
authored
fixed [""] being set as loaded plugins (#3734)
1 parent c4e7502 commit 6cb89a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

manim/_config/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,12 @@ def digest_parser(self, parser: configparser.ConfigParser) -> Self:
652652
setattr(self, "window_size", window_size)
653653

654654
# plugins
655-
self.plugins = parser["CLI"].get("plugins", fallback="", raw=True).split(",")
655+
plugins = parser["CLI"].get("plugins", fallback="", raw=True)
656+
if plugins == "":
657+
plugins = []
658+
else:
659+
plugins = plugins.split(",")
660+
self.plugins = plugins
656661
# the next two must be set AFTER digesting pixel_width and pixel_height
657662
self["frame_height"] = parser["CLI"].getfloat("frame_height", 8.0)
658663
width = parser["CLI"].getfloat("frame_width", None)

0 commit comments

Comments
 (0)