Including a directory using Pyinstaller

前端 未结 5 895
轻奢々
轻奢々 2020-12-01 05:43

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 ar

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-01 06:00

    Yes, you can just add directories to the Analysis object and they get copied across.

    a = Analysis(['main.py'],
                 datas = [('test/dir', 'test/dir')],
                 ...)
    

提交回复
热议问题