mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Merge pull request #440 from eulertour/file-env-var
Optionally specify files directory with FILE_DIR environment variable
This commit is contained in:
commit
295c645548
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue