Look for Configuration Files in Platform-Recommended Directories
Problem
Streamlit uses the home directory for its configuration, but that adds another config file to pollute a home directory. We should be good platform citizens and provide thoughtful locations for configuration files.
Solution
We as a team agreed on the following order:
$PROJECT_FOLDER/.streamlit- (great if possible, but not required)
$PROJECT_FOLDER/{../}+.streamlit(i.e. any subfolder containing .streamlit) ~/.config/streamlitif Unix/macOS (or in$XDG_CONFIG_HOME, if defined),%CSIDL_COMMON_APPDATA%/streamlitif Windows (that'sProgramData, meaning we follow Git and Conda)~/.streamlit
Additional context
See Closed Pull Request #1907