From 707008bdc8efbf1892c2920875ec094da0a5da09 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Sat, 28 May 2022 12:27:04 +0200 Subject: [PATCH] find icon also if not started in base folder --- stand/webapp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stand/webapp.py b/stand/webapp.py index fc138f5..3840d53 100644 --- a/stand/webapp.py +++ b/stand/webapp.py @@ -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" )