-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix asset id modules being ignored by pyinstaller
- Loading branch information
1 parent
65a4f71
commit 6ab2335
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
from PyInstaller.utils.hooks import collect_data_files | ||
|
||
import open_prime_rando.echoes.asset_ids.world | ||
|
||
# https://pyinstaller.readthedocs.io/en/stable/hooks.html#provide-hooks-with-package | ||
|
||
datas = collect_data_files('open_prime_rando', excludes=['__pyinstaller']) | ||
hiddenimports = [ | ||
f"open_prime_rando.echoes.asset_ids{module_name}" | ||
for module_name in open_prime_rando.echoes.asset_ids.world._DEDICATED_FILES.values() | ||
] |