Commit 38620289 authored by catboxanon's avatar catboxanon
Browse files

Add env var for cache file

parent 08838105
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
import json
import os
import os.path
import threading
import time

from modules.paths import data_path, script_path

cache_filename = os.path.join(data_path, "cache.json")
cache_filename = os.environ.get('SD_WEBUI_CACHE_FILE', os.path.join(data_path, "cache.json"))
cache_data = None
cache_lock = threading.Lock()