mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
import importlib, start streaming mode upon import
This commit is contained in:
parent
9366accf59
commit
54b8d0f8ed
2 changed files with 12 additions and 8 deletions
3
manim.py
3
manim.py
|
@ -3,6 +3,7 @@ import manimlib.config
|
||||||
import manimlib.extract_scene
|
import manimlib.extract_scene
|
||||||
import manimlib.stream_starter
|
import manimlib.stream_starter
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
args = manimlib.config.parse_cli()
|
args = manimlib.config.parse_cli()
|
||||||
if not args.livestream:
|
if not args.livestream:
|
||||||
config = manimlib.config.get_configuration(args)
|
config = manimlib.config.get_configuration(args)
|
||||||
|
@ -12,3 +13,5 @@ else:
|
||||||
to_twitch=args.to_twitch,
|
to_twitch=args.to_twitch,
|
||||||
twitch_key=args.twitch_key,
|
twitch_key=args.twitch_key,
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
manimlib.stream_starter.start_livestream()
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import argparse
|
import argparse
|
||||||
import colour
|
import colour
|
||||||
|
import importlib
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import types
|
import types
|
||||||
|
|
Loading…
Add table
Reference in a new issue