refactor(lib): rename main to __main__ (#82)

* refactor(lib): rename `main` to `__main__`

This allows to call the module using `python -m manim-slides`, useful for profiling, etc.

* fix(setup): update name
This commit is contained in:
Jérome Eertmans
2022-12-02 17:24:57 +01:00
committed by GitHub
parent d6bb82261c
commit 1bca2683e1
3 changed files with 2 additions and 2 deletions

View File

@ -23,6 +23,6 @@ This page contains an exhaustive list of all the commands available with `manim-
If you need help installing or using Manim Slide, please refer to the `GitHub README <https://github.com/jeertmans/manim-slides>`_.
.. click:: manim_slides.main:cli
.. click:: manim_slides.__main__:cli
:prog: manim-slides
:nested: full

View File

@ -49,4 +49,4 @@ documentation = "https://eertmans.be/manim-slides"
repository = "https://github.com/jeertmans/manim-slides"
[project.scripts]
manim-slides = "manim_slides.main:cli"
manim-slides = "manim_slides.__main__:cli"