官方Github:TkinterDnD2项目
hook-tkinterdnd2.py
"""pyinstaller hook file. You need to use this hook-file if you are packaging a project using tkinterdnd2. Just put hook-tkinterdnd2.py in the same directory where you call pyinstaller and type: pyinstaller myproject/myproject.py --additional-hooks-dir=. """ from PyInstaller.utils.hooks import collect_data_files, eval_statement datas = collect_data_files('tkinterdnd2')
--additional-hooks-dir=.
,这里的值为新添加的 hook-tkinterdnd2.py
的项目路径pyinstaller -F -w myproject/myproject.py --additional-hooks-dir=.
本文作者:Silon汐冷
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!