All of the documentation for Pyinstaller talks about including individual files. Is it possible to include a directory, or should I write a function to create the include array by traversing my include directory?
相关问题
- How does the setup bootstrapper detect if prerequi
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
Paste the following after
a = Analysis()
in the spec file to traverse a directory recursively and add all the files in it to the distribution.I'm suprised that no one mentioned the official supported option using
Tree()
:https://stackoverflow.com/a/20677118/2230844
https://pythonhosted.org/PyInstaller/advanced-topics.html#the-toc-and-tree-classes
What about just using
glob
?