From 5e658fdb109dbb2bf8209be511d3b819c6e331dc Mon Sep 17 00:00:00 2001 From: bdemick Date: Thu, 1 Feb 2024 08:35:41 -0500 Subject: [PATCH] Fixes macOS import issue --- pyhidra/gui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyhidra/gui.py b/pyhidra/gui.py index 2bf7598..059c0c9 100644 --- a/pyhidra/gui.py +++ b/pyhidra/gui.py @@ -46,7 +46,9 @@ def _gui(): # where tkinter can't be imported. Since there may not be an attached # terminal, the problem still needs to be reported somehow. try: - import tkinter.messagebox as _ + # This import creates problems for macOS + if platform.system() != 'Darwin': + import tkinter.messagebox as _ except ImportError as e: if platform.system() == 'Windows': # there is no console/terminal to report the error