Regarding data files in a one-file executable, the doc I edited is obviously needs work.
First read this: http://pythonhosted.org/PyInstaller/#adapting-to-being-frozen That is clear on knowing whether you are "frozen" -- now your code can tell if it is bundled, or in test mode, and you have from sys._MEIPAS the (absolute?) path to the folder containing your script and associated files. Next read the topic that follows it, http://pythonhosted.org/PyInstaller/#accessing-data-files It makes the happy claim "You can include related files in either type of distribution", and it says for one-folder, they are contained in the distribution folder along with the executable. But it does NOT explicitly say, where the heck are the data files of a one-file bundle? I think the answer is -- Martin please correct if wrong -- that the data files, un-zipped and available, are in the temp folder whose path is in sys._MEIPAS. The only difference between one-folder and one-file data files is, with one-file the folder is temporary and will be deleted, so any edits will be lost.(Right?) If so, this topic needs to be edited for clarity. Now read the topic, http://pythonhosted.org/PyInstaller/#adding-files-to-the-bundle Most of this topic is clear but the examples are all in terms of using the COLLECT object. That object is only used for creating a one-folder bundle (true?). It is the EXE object that creates the one-FILE bundle (true?). So the doc very much needs a specific example of how to add a group of data files to a one-folder executable. Martin, if you can provide one, I will edit these three topics and give you a pull request. A side comment is that for Mac OS X, it is usual to put data files, not directly in name.app/Contents, but in name.app/Contents/Resources. I doubt if PyInstaller does that (see http://pythonhosted.org/PyInstaller/#building-mac-os-x-app-bundles), but it should. Should we open an enhancement ticket on that? Dave Cortesi -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To post to this group, send email to pyinstaller@googlegroups.com. Visit this group at http://groups.google.com/group/pyinstaller. For more options, visit https://groups.google.com/groups/opt_out.