find icon also if not started in base folder
This commit is contained in:
1 parent
3590ee29a7
commit
707008bdc8
1 file changed
+4
-1
+4
-1
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user