Add pyinstaller hook for systeminfo plugins

This commit is contained in:
Daniel Goldberg 2020-01-21 17:31:57 +02:00
parent ff2abc4744
commit ef69058f91
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
from PyInstaller.utils.hooks import collect_submodules, collect_data_files
# Import all actions as modules
hiddenimports = collect_submodules('infection_monkey.system_info.collectors')
# Add action files that we enumerate
datas = (collect_data_files('infection_monkey.system_info.collectors', include_py_files=True))