mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 12:32:36 +08:00
Allow for a configurable cache location
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import os
|
||||
import tempfile
|
||||
import appdirs
|
||||
|
||||
from manimlib.config import get_custom_config
|
||||
from manimlib.config import get_manim_dir
|
||||
@ -17,6 +18,9 @@ def get_customization():
|
||||
if not directories["temporary_storage"]:
|
||||
directories["temporary_storage"] = tempfile.gettempdir()
|
||||
|
||||
if not directories["cache"]:
|
||||
directories["cache"] = appdirs.user_cache_dir("manim")
|
||||
|
||||
# Assumes all shaders are written into manimlib/shaders
|
||||
directories["shaders"] = os.path.join(
|
||||
get_manim_dir(), "manimlib", "shaders"
|
||||
|
Reference in New Issue
Block a user