Skip to content

Commit

Permalink
Supress warnings on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Nov 10, 2023
1 parent 278e20e commit bc1c9a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kikit/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ def fakeKiCADGui():
import wx
import os

if hasattr(wx, "DisableAsserts"):
wx.DisableAsserts()

if os.name != "nt" and os.environ.get("DISPLAY", "").strip() == "":
return None

Expand Down

0 comments on commit bc1c9a5

Please sign in to comment.