import importlib, start streaming mode upon import

This commit is contained in:
Devin Neal 2018-12-24 13:28:43 -08:00
parent 9366accf59
commit 54b8d0f8ed
2 changed files with 12 additions and 8 deletions

View file

@ -3,6 +3,7 @@ import manimlib.config
import manimlib.extract_scene
import manimlib.stream_starter
if __name__ == "__main__":
args = manimlib.config.parse_cli()
if not args.livestream:
config = manimlib.config.get_configuration(args)
@ -12,3 +13,5 @@ else:
to_twitch=args.to_twitch,
twitch_key=args.twitch_key,
)
else:
manimlib.stream_starter.start_livestream()

View file

@ -1,5 +1,6 @@
import argparse
import colour
import importlib
import os
import sys
import types