Including a directory using Pyinstaller

前端 未结 5 925
轻奢々
轻奢々 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:10

    What about just using glob?

    from glob import glob
    datas = []
    datas += glob('/path/to/filedir/*')
    datas += glob('/path/to/textdir/*.txt')
    ...
    
    a.datas = datas
    

提交回复
热议问题