Skip to content

Commit

Permalink
Merge pull request #12 from randovania/feature/pyinstaller-asset-ids
Browse files Browse the repository at this point in the history
Fix asset id modules being ignored by pyinstaller
  • Loading branch information
henriquegemignani authored Mar 1, 2023
2 parents 65a4f71 + 6ab2335 commit 62f377b
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 62f377b

Please sign in to comment.