diff --git a/app/app_config.py b/app/app_config.py index 3434e86..b1221c6 100644 --- a/app/app_config.py +++ b/app/app_config.py @@ -1,6 +1,7 @@ from __future__ import annotations from pathlib import Path +from tempfile import gettempdir import streamlit as st @@ -11,7 +12,8 @@ ACCESS_SUPPORT_CONTACT = "администратору СФМ" USER_PATHS_KEY = "user_input_dirs" EDIT_PATH_OPEN_KEY = "edit_path_open" 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: