diff --git a/configtool/boardpanel.py b/configtool/boardpanel.py index 0b85c09..0d75b85 100644 --- a/configtool/boardpanel.py +++ b/configtool/boardpanel.py @@ -157,7 +157,7 @@ class BoardPanel(wx.Panel): if not self.confirmLoseChanges("load a new board configuration"): return - if platform == "darwin": + if platform.startswith("darwin"): # Mac OS X appears to be a bit limited on wildcards. wildcard = "Board configuration (board.*.h)|*.h" else: diff --git a/configtool/build.py b/configtool/build.py index 74d023c..0289395 100644 --- a/configtool/build.py +++ b/configtool/build.py @@ -256,7 +256,7 @@ class Build(wx.Dialog): # Windows. Without this it always drops this error message: # collect2.exe: error: ld returned 5 exit status 255 # Just enabling verbose messages allows ld.exe to complete without failure. - if platform == "win32": + if platform.startswith("win"): cmdpath += " -Wl,-V" ofiles = ["\"" + join(self.root, "build", f) + "\"" diff --git a/configtool/data.py b/configtool/data.py index 1a79412..e5f23fa 100644 --- a/configtool/data.py +++ b/configtool/data.py @@ -24,7 +24,7 @@ BSIZE = (100, 60) BSIZESMALL = (90, 30) -if platform == "win32": +if platform.startswith("win"): offsetTcLabel = 4 offsetChLabel = 4 else: diff --git a/configtool/printerpanel.py b/configtool/printerpanel.py index 297349c..7c91afd 100644 --- a/configtool/printerpanel.py +++ b/configtool/printerpanel.py @@ -140,7 +140,7 @@ class PrinterPanel(wx.Panel): if not self.confirmLoseChanges("load a new printer configuration"): return - if platform == "darwin": + if platform.startswith("darwin"): # Mac OS X appears to be a bit limited on wildcards. wildcard = "Printer configuration (printer.*.h)|*.h" else: