stlite
stlite copied to clipboard
Local file access with text input
@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
...
Is there any way to make an app built with stlite able to access the local file system?
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.