from PyInstaller.utils.hooks import collect_data_files # 收集 kp package 內所有資料檔(如非 .py 檔案) datas = collect_data_files('kp')