We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0da3ec commit fa1eda5Copy full SHA for fa1eda5
1 file changed
InteractiveHtmlBom/generate_interactive_bom.py
@@ -25,11 +25,14 @@ def to_utf(s):
25
def main():
26
create_wx_app = 'INTERACTIVE_HTML_BOM_NO_DISPLAY' not in os.environ
27
28
- if create_wx_app:
29
- import wx
+ import wx
30
+ if create_wx_app:
31
app = wx.App()
32
- app.SetAssertMode(wx.APP_ASSERT_SUPPRESS)
+ if hasattr(wx, "APP_ASSERT_SUPPRESS"):
33
+ app.SetAssertMode(wx.APP_ASSERT_SUPPRESS)
34
+ elif hasattr(wx, "DisableAsserts"):
35
+ wx.DisableAsserts()
36
37
from .core import ibom
38
from .core.config import Config
0 commit comments