From 6ab23353563e8c6045707cf8b0dd7bda1469ca57 Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Wed, 1 Mar 2023 22:29:04 +0200 Subject: [PATCH] Fix asset id modules being ignored by pyinstaller --- open_prime_rando/__pyinstaller/hook-open_prime_rando.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/open_prime_rando/__pyinstaller/hook-open_prime_rando.py b/open_prime_rando/__pyinstaller/hook-open_prime_rando.py index dcea33a..624512d 100644 --- a/open_prime_rando/__pyinstaller/hook-open_prime_rando.py +++ b/open_prime_rando/__pyinstaller/hook-open_prime_rando.py @@ -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() +]