from PyInstaller.utils.hooks import collect_data_files # https://pyinstaller.readthedocs.io/en/stable/hooks.html#provide-hooks-with-package datas = collect_data_files('pre_edited_cs', excludes=['__pyinstaller'])