From c7b140a24d756b675feee0e7e0a66f2d440c8c67 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sun, 21 Jan 2018 23:31:46 -0800 Subject: [PATCH] Added error message to indicate people should change MEDIA_DIR --- constants.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/constants.py b/constants.py index 6efe1a1d..496fcbc1 100644 --- a/constants.py +++ b/constants.py @@ -79,6 +79,12 @@ TEX_IMAGE_DIR = TEX_DIR #TODO, What is this doing? MOBJECT_DIR = os.path.join(FILE_DIR, "mobjects") IMAGE_MOBJECT_DIR = os.path.join(MOBJECT_DIR, "image") +if not os.path.exists(MEDIA_DIR): + raise Exception(""" + Redefine MEDIA_DIR in constants.py to point to + a valid directory where movies and images will + be written + """) for folder in [FILE_DIR, RASTER_IMAGE_DIR, SVG_IMAGE_DIR, ANIMATIONS_DIR, TEX_DIR, TEX_IMAGE_DIR, MOBJECT_DIR, IMAGE_MOBJECT_DIR, STAGED_SCENES_DIR]: