refactor: use new settings option

pull/861/head
Callum Leslie 2 years ago
parent d2d593371b
commit a110f49e44
No known key found for this signature in database
GPG Key ID: D382C4AFEECEAA90

@ -5,7 +5,7 @@ from os import name
from reddit.subreddit import get_subreddit_threads from reddit.subreddit import get_subreddit_threads
from utils.cleanup import cleanup from utils.cleanup import cleanup
from utils.console import print_markdown, print_step from utils.console import print_markdown, print_step
from utils.settings import check_toml from utils import settings
# from utils.checker import envUpdate # from utils.checker import envUpdate
from video_creation.background import download_background, chop_background_video from video_creation.background import download_background, chop_background_video
@ -52,7 +52,7 @@ def run_many(times):
if __name__ == "__main__": if __name__ == "__main__":
config = check_toml(".config.template.toml", "config.toml") config = settings.check_toml(".config.template.toml", "config.toml")
config is False and exit() config is False and exit()
try: try:
if config["settings"]["times_to_run"]: if config["settings"]["times_to_run"]:

Loading…
Cancel
Save