from PyInstaller.utils.hooks import collect_data_files, collect_submodules, copy_metadata

hiddenimports = collect_submodules('dosagelib.plugins')
datas = copy_metadata('dosage') + collect_data_files('dosagelib')

from PyInstaller.utils.hooks import collect_data_files, collect_submodules, copy_metadata

hiddenimports = ['dosagelib.data'] + collect_submodules('dosagelib.plugins')
datas = copy_metadata('dosage') + collect_data_files('dosagelib')

Make sure dosagelib.data is importable
PyInstaller: Make sure dosagelib.data is importable

  from PyInstaller.utils.hooks import collect_data_files, collect_submodules, copy_metadata
  
- hiddenimports = collect_submodules('dosagelib.plugins')
+ hiddenimports = ['dosagelib.data'] + collect_submodules('dosagelib.plugins')
  datas = copy_metadata('dosage') + collect_data_files('dosagelib')
  
Make sure dosagelib.data is importable
## Code Before:
from PyInstaller.utils.hooks import collect_data_files, collect_submodules, copy_metadata

hiddenimports = collect_submodules('dosagelib.plugins')
datas = copy_metadata('dosage') + collect_data_files('dosagelib')

## Instruction:
Make sure dosagelib.data is importable
## Code After:
from PyInstaller.utils.hooks import collect_data_files, collect_submodules, copy_metadata

hiddenimports = ['dosagelib.data'] + collect_submodules('dosagelib.plugins')
datas = copy_metadata('dosage') + collect_data_files('dosagelib')
