How do I package files into an EXE file that is generated via PyInstaller --onedir?
I see, that I can add the file with
a.zipped_data+=["version.json", "version.json", "DATA]
PYZ(a.pure, a.zipped_data)
pyi-archive_viewer shows the file in PYZ-00.pyz
But
pkg_util.find_loader("testmod").get_data("version.json")
does not find the file.
NB: I can't use --onefile mode, because it would need to unpack several 100 MB at each program start. And I want to tie several files (not only the version file) with the executable.