stlite icon indicating copy to clipboard operation
stlite copied to clipboard

Local file access with text input

Open neverparadise opened this issue 2 months ago • 1 comments

@whitphx Hello. Thanks to stlite, I was able to successfully build my small project into an exe file.

However, unfortunately, the functionality of my app is not working.

Inside my app’s Python code, I use Streamlit’s text_input to receive a folder path from the local file system as text input, and then read the CSV files within that folder. Below is the code.

file_path = st.text_input("folder_path", "")
st.session_state.folder_path = file_path
...
Image

Is there any way to make an app built with stlite able to access the local file system?

neverparadise avatar Oct 27 '25 09:10 neverparadise

https://github.com/whitphx/stlite/tree/main/packages/desktop#local-file-access helps you? You need to mount the OS-level file system onto Stlite (Pyodide)'s file system first.

whitphx avatar Nov 17 '25 16:11 whitphx