Merge pull request #440 from eulertour/file-env-var

Optionally specify files directory with FILE_DIR environment variable
This commit is contained in:
Devin Neal 2019-02-15 13:01:01 -08:00 committed by GitHub
commit 295c645548
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ SVG_IMAGE_DIR = os.path.join(MEDIA_DIR, "designs", "svg_images")
SOUND_DIR = os.path.join(MEDIA_DIR, "designs", "sounds")
###
THIS_DIR = os.path.dirname(os.path.realpath(__file__))
FILE_DIR = os.path.join(THIS_DIR, "files")
FILE_DIR = os.path.join(os.getenv("FILE_DIR", default=THIS_DIR), "files")
TEX_DIR = os.path.join(FILE_DIR, "Tex")
# These two may be depricated now.
MOBJECT_DIR = os.path.join(FILE_DIR, "mobjects")