find icon also if not started in base folder
This commit is contained in:
@ -1,3 +1,5 @@
|
|||||||
|
from pathlib import Path
|
||||||
|
|
||||||
import streamlit as st
|
import streamlit as st
|
||||||
|
|
||||||
import hacks
|
import hacks
|
||||||
@ -10,10 +12,11 @@ from utils.st_utils import get_session_id, hide_UI_elements
|
|||||||
|
|
||||||
print(">>> start of streamlit run")
|
print(">>> start of streamlit run")
|
||||||
|
|
||||||
|
icon = Path(__file__).parent.parent / "icon.png"
|
||||||
|
|
||||||
st.set_page_config(
|
st.set_page_config(
|
||||||
page_title="stand",
|
page_title="stand",
|
||||||
page_icon="icon.png",
|
page_icon=str(icon),
|
||||||
layout="wide"
|
layout="wide"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user