使用 Pyinstaller 包含目录 [英] Including a directory using Pyinstaller
本文介绍了使用 Pyinstaller 包含目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Pyinstaller 的所有文档都讨论了包含单个文件的问题.是否可以包含一个目录,或者我应该编写一个函数来通过遍历我的包含目录来创建包含数组?
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?
推荐答案
我很惊讶没有人提到使用 Tree()
的官方支持选项:
I'm suprised that no one mentioned the official supported option using Tree()
:
https://stackoverflow.com/a/20677118/2230844
https://pyinstaller.readthedocs.io/en/stable/advanced-topics.html#the-toc-and-tree-classes
这篇关于使用 Pyinstaller 包含目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文