A community-maintained Python framework for creating mathematical animations.
Add support for manim-logsetup config
Syrus Dark1369b596dbdb
diff --git a/manim/logger/__main__.py b/manim/logger/__main__.pyindex 9f01cee44..593357ce2 100644--- a/manim/logger/__main__.py+++ b/manim/logger/__main__.py@@ -20,7 +20,7 @@ def check_valid_colour(color):return Trueexcept:return False-if __name__=="__main__":+def main():console = Console()config = configparser.ConfigParser()config.read('manim.cfg')@@ -53,4 +53,6 @@ if __name__=="__main__":for n in track(range(100), description="Converting to Manim.cfg"):with open("manim.cfg","w") as fp:config.write(fp)- console.print("A file called [yellow]manim.cfg[/yellow] is created. To save your theme please save that file and each time \nplace it in you current working directory(The directory where you execute manim command) for the your theme to be displayed.")\ No newline at end of file+ console.print("A file called [yellow]manim.cfg[/yellow] is created. To save your theme please save that file and each time \nplace it in you current working directory(The directory where you execute manim command) for the your theme to be displayed.")+if __name__=="__main__":+ main()\ No newline at end of filediff --git a/setup.py b/setup.pyindex af84f44ad..bed3131e6 100755--- a/setup.py+++ b/setup.py@@ -11,6 +11,7 @@ setup("console_scripts": ["manim=manim.__main__:main","manimcm=manim.__main__:main",+ "manim-logsetup=manim.logger.__main__:main",]},install_requires=[