fix: ensure base directory of liteloader exists

This commit is contained in:
Sefa Eyeoglu 2022-04-05 15:40:02 +02:00
parent 1bd80e57aa
commit fe4269cb12
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -5,12 +5,14 @@ import requests
from cachecontrol import CacheControl
from cachecontrol.caches import FileCache
from meta.common import upstream_path
from meta.common.liteloader import VERSIONS_FILE
from meta.common import upstream_path, ensure_upstream_dir
from meta.common.liteloader import VERSIONS_FILE, BASE_DIR
from meta.model.liteloader import LiteloaderIndex
UPSTREAM_DIR = upstream_path()
ensure_upstream_dir(BASE_DIR)
forever_cache = FileCache('caches/http_cache', forever=True)
sess = CacheControl(requests.Session(), forever_cache)