"""PyInstaller hook for streamlit-drawable-canvas. Streamlit components are Python packages that also ship a built JavaScript/CSS bundle Streamlit serves from disk at component- render time. Without those assets in the bundle the canvas iframe loads blank — the user sees the page render fine but the visual picker shows no image and no drawing controls. ``collect_data_files`` covers the frontend bundle directory (named ``frontend`` or ``frontend/build`` depending on the component version). Hidden imports are picked up by the main spec's ``collect_submodules`` call, repeated here for the same belt-and-braces reason as ``hook-pypdfium2.py``. """ from PyInstaller.utils.hooks import collect_data_files, collect_submodules datas = collect_data_files("streamlit_drawable_canvas") hiddenimports = collect_submodules("streamlit_drawable_canvas")