From 7afa77ecac80a0b6bb18bba9a5a110fb8a3ce84b Mon Sep 17 00:00:00 2001 From: oldnapalm <38410858+oldnapalm@users.noreply.github.com> Date: Mon, 15 Jun 2020 12:19:44 -0300 Subject: [PATCH] Exclude import 'Tkinter' https://github.com/pyinstaller/pyinstaller/wiki/Recipe-remove-tkinter-tcl --- standalone.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/standalone.spec b/standalone.spec index fff9ab0..6491042 100644 --- a/standalone.spec +++ b/standalone.spec @@ -2,6 +2,8 @@ block_cipher = None +import sys +sys.modules['FixTk'] = None a = Analysis(['standalone.py'], pathex=['/home/alexvh/Code/zoffline'], @@ -10,7 +12,7 @@ a = Analysis(['standalone.py'], hiddenimports=[], hookspath=[], runtime_hooks=[], - excludes=[], + excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher,