Skip to content

Commit

Permalink
Fix asset id modules being ignored by pyinstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquegemignani committed Mar 1, 2023
1 parent 65a4f71 commit 6ab2335
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions open_prime_rando/__pyinstaller/hook-open_prime_rando.py
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()
]

0 comments on commit 6ab2335

Please sign in to comment.