建模程序 多个定时程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
836 B

# PyInstaller hook for download_batch_data package
from PyInstaller.utils.hooks import collect_submodules, collect_data_files
# 收集所有子模块(包括递归子模块)
hiddenimports = collect_submodules('download_batch_data')
# 确保包含所有必要的模块(即使 collect_submodules 已经包含,显式声明更安全)
explicit_imports = [
'download_batch_data',
'download_batch_data.main_download_batch_data_and_trans',
'download_batch_data.utils',
'download_batch_data.utils.funcs',
'download_batch_data.utils.small_machine_transform',
'download_batch_data.utils.oss_redis',
'download_batch_data.utils.oss_func',
'download_batch_data.utils.changeFiles',
'download_batch_data.utils.logs',
]
# 合并列表并去重
hiddenimports = list(set(hiddenimports + explicit_imports))