Refer to https://github.com/pyinstaller/pyinstaller/issues/1460 for context.
The Analysis() call in a spec file now allows passing datas=[list of tuples of data files] and binaries=[list of tuples of binaries] This is a big improvement over the old method where the user had to use TOC or TREE to encode such files. Reading the comments in the code, I see there are some rough edges and TODOs in this support as yet. I need to document this feature in the manual section on "Using Spec Files", however, it is important to document only what you WANT the users to know about -- not everything that the code allows, and certainly nothing that might change in future. So please comment on these points. datas= and binaries= are both lists of two-tuples. In each tuple, the first item is a string that names the files to be copied: * if it is a name or relative path, it is taken as relative to... what? the path to the main script? * it can name a single file, or it can be a "glob" that names multiple files The second item in the tuple names the destination for the files at execution time. * This must be a relative path. * It is relative to the location of the executable program at run-time (the one folder or the MEIPASS temp folder). ? Does glob work the same in Windows and Unix? Or are the rules different? (n.b. the glob module doc just says "rules used by the Unix shell") ? How does the user specify "same place as the executable"? Comments in the code say the target dir shouldn't be None or empty -- may it be "."? ? What happens if the target dir string starts with separator char "\" or "/"? ? What if the target dir string starts with ".." ? ? Please can you suggest a realistic example for binaries=? Preferably one relevant in Windows? Cheers, DC -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyinstaller. For more options, visit https://groups.google.com/d/optout.
