find icon also if not started in base folder

This commit is contained in:
2022-05-28 12:27:04 +02:00
parent 3590ee29a7
commit 707008bdc8

View File

@ -1,3 +1,5 @@
from pathlib import Path
import streamlit as st
import hacks
@ -10,10 +12,11 @@ from utils.st_utils import get_session_id, hide_UI_elements
print(">>> start of streamlit run")
icon = Path(__file__).parent.parent / "icon.png"
st.set_page_config(
page_title="stand",
page_icon="icon.png",
page_icon=str(icon),
layout="wide"
)