Skip to content

Commit

Permalink
增加tkinter hook
Browse files Browse the repository at this point in the history
  • Loading branch information
lunzhiPenxil committed Sep 7, 2022
1 parent 99886cc commit 2998dcb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hook/hook-tkinter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from PyInstaller.utils.hooks import collect_all

def hook(hook_api):
packages = ['tkinter']
for package in packages:
datas, binaries, hiddenimports = collect_all(package)
#hook_api.add_datas(datas)
#hook_api.add_binaries(binaries)
hook_api.add_imports(*hiddenimports)

0 comments on commit 2998dcb

Please sign in to comment.