Fix write runtime file in repo
This commit is contained in:
parent
32e83c5b21
commit
6494f9d52a
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user