PyInstaller: Make sure data files are included

This commit is contained in:
Tobias Gruetzmacher 2022-05-28 20:52:30 +02:00
parent 9b95171f37
commit 5550217c02

View file

@ -1,6 +1,6 @@
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
# Copyright (C) 2016-2020 Tobias Gruetzmacher # Copyright (C) 2016-2022 Tobias Gruetzmacher
from PyInstaller.utils.hooks import collect_submodules, copy_metadata from PyInstaller.utils.hooks import collect_data_files, collect_submodules, copy_metadata
hiddenimports = collect_submodules('dosagelib.plugins') hiddenimports = collect_submodules('dosagelib.plugins')
datas = copy_metadata('dosage') datas = copy_metadata('dosage') + collect_data_files('dosagelib')