FileNotFoundError config.yaml in streamlit

File "/home/appuser/venv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/", line 564, in _run_script
    exec(code, module.__dict__)
File "/app/streamlit_website_joon-main/streamlit_website_joon-main/streamlit_web/🏡", line 530, in <module>
    with open('./config.yaml') as file:
type or paste code here

You can use cwd = os.getcwd() to get the current path, and then use the full path to the config file.

with open('/app/streamlit_website_joon-main/streamlit_website_joon-main/streamlit_web/config.yaml') as file:
    config = yaml.load(file, Loader=SafeLoader)