From 302c977027a1b844d395527299211d5459e33982 Mon Sep 17 00:00:00 2001 From: "Bobby Abellana (aider)" Date: Tue, 11 Feb 2025 16:23:41 -0800 Subject: [PATCH] fix: Correctly use path_holder for directory selection in Streamlit app --- src/streamlit_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/streamlit_app.py b/src/streamlit_app.py index 18b289a..7f12ce0 100644 --- a/src/streamlit_app.py +++ b/src/streamlit_app.py @@ -223,7 +223,7 @@ with col1: root.after(20, select_dir) root.mainloop() if path_holder and path_holder[0]: - st.session_state['source_dir_selected'] = path + st.session_state['source_dir_selected'] = path_holder[0] st.rerun() root.destroy() except Exception as e: @@ -280,7 +280,7 @@ with col1: root.after(20, select_dir) root.mainloop() if path_holder and path_holder[0]: - st.session_state['dest_dir_selected'] = path + st.session_state['dest_dir_selected'] = path_holder[0] st.rerun() root.destroy() except Exception as e: