mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
print version when start
This commit is contained in:
parent
7425057d9f
commit
ed99427a3b
1 changed files with 5 additions and 6 deletions
|
@ -2,16 +2,15 @@
|
||||||
import manimlib.config
|
import manimlib.config
|
||||||
import manimlib.extract_scene
|
import manimlib.extract_scene
|
||||||
import manimlib.utils.init_config
|
import manimlib.utils.init_config
|
||||||
|
from manimlib import __version__
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = manimlib.config.parse_cli()
|
args = manimlib.config.parse_cli()
|
||||||
|
|
||||||
if args.version:
|
print(f"ManimGL \033[32mv{__version__}\033[0m")
|
||||||
from manimlib import __version__
|
if args.version and args.file == None:
|
||||||
print(f"ManimGL v{__version__}")
|
return
|
||||||
if args.file == None:
|
|
||||||
return
|
|
||||||
|
|
||||||
if args.config:
|
if args.config:
|
||||||
manimlib.utils.init_config.init_customization()
|
manimlib.utils.init_config.init_customization()
|
||||||
|
|
Loading…
Add table
Reference in a new issue