Update file_share.py

This commit is contained in:
! Freaku 2023-12-08 21:28:33 +05:30 committed by GitHub
parent 9770913e82
commit 08e9cee2d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,12 +28,14 @@ from threading import Thread
import logging import logging
from babase._general import Call from babase._general import Call
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
from baenv import TARGET_BALLISTICA_BUILD
if TYPE_CHECKING: if TYPE_CHECKING:
from typing import Any, Callable, Sequence from typing import Any, Callable, Sequence
app = _babase.app app = _babase.app
MODS_DIR = app.env.python_directory_user
MODS_DIR = app.python_directory_user if TARGET_BALLISTICA_BUILD < 21282 else app.env.python_directory_user
REPLAYS_DIR = bui.get_replays_dir() REPLAYS_DIR = bui.get_replays_dir()
HEADERS = { HEADERS = {
'accept': 'application/json', 'accept': 'application/json',