Fix write runtime file in repo

This commit is contained in:
Raykov-MS 2026-07-10 12:20:33 +03:00
parent 32e83c5b21
commit 6494f9d52a

View File

@ -1,6 +1,7 @@
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path
from tempfile import gettempdir
import streamlit as st import streamlit as st
@ -11,7 +12,8 @@ ACCESS_SUPPORT_CONTACT = "администратору СФМ"
USER_PATHS_KEY = "user_input_dirs" USER_PATHS_KEY = "user_input_dirs"
EDIT_PATH_OPEN_KEY = "edit_path_open" EDIT_PATH_OPEN_KEY = "edit_path_open"
EDIT_PATH_VALUE_KEY = "edit_path_value" EDIT_PATH_VALUE_KEY = "edit_path_value"
PATH_STORE_FILE = Path(__file__).resolve().parents[1] / ".user_paths.json" # Runtime-only user paths storage. In bank contour we use tmpfs.
PATH_STORE_FILE = Path(gettempdir()) / "user_paths.json"
def resolve_user_id() -> str: def resolve_user_id() -> str: