From ce9555e3d635b5431e9000d6c9ca73078da0615e Mon Sep 17 00:00:00 2001 From: Kiehl Date: Fri, 13 Sep 2019 13:15:41 -0700 Subject: [PATCH] add explicity wx imports to enable OSX pyinstaller packaging --- gooey/gui/application.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gooey/gui/application.py b/gooey/gui/application.py index 60960b9..6593dcf 100644 --- a/gooey/gui/application.py +++ b/gooey/gui/application.py @@ -3,6 +3,11 @@ Main runner entry point for Gooey. ''' import wx +# wx.html and wx.xml imports required here to make packaging with +# pyinstaller on OSX possible without manually specifying `hidden_imports` +# in the build.spec +import wx.html +import wx.xml import wx.richtext # Need to be imported before the wx.App object is created. import wx.lib.inspection from gooey.gui.lang import i18n