mirror of
https://github.com/unmojang/meta.git
synced 2025-09-24 19:53:24 -04:00
fix: ensure base directory of liteloader exists
This commit is contained in:
parent
1bd80e57aa
commit
fe4269cb12
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user