From 28a820a8bc00c34e14cae2941250ce5ac150c987 Mon Sep 17 00:00:00 2001 From: Aymane Hrouch Date: Thu, 27 Apr 2023 13:12:04 +0100 Subject: Fix module not found: add root directory to sys path --- gui/streamlit_app.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gui/streamlit_app.py') diff --git a/gui/streamlit_app.py b/gui/streamlit_app.py index ff1cb6d4..44507e18 100644 --- a/gui/streamlit_app.py +++ b/gui/streamlit_app.py @@ -1,3 +1,8 @@ +import os +import sys + +sys.path.append(os.path.join(os.path.dirname(__file__), os.path.pardir)) + import streamlit as st import phind @@ -45,4 +50,4 @@ hide_streamlit_style = """ footer {visibility: hidden;} """ -st.markdown(hide_streamlit_style, unsafe_allow_html=True) \ No newline at end of file +st.markdown(hide_streamlit_style, unsafe_allow_html=True) -- cgit v1.2.3