Skip to content

Commit

Permalink
Fixes macOS import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemick committed Feb 1, 2024
1 parent 2425963 commit 5e658fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyhidra/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e658fd

Please sign in to comment.