Commit bd716a23702adc4ca927e2b95d63ad25d1c2a411
1 parent
ed5fcc9b
Exists in
master
and in
6 other branches
ENH: wxPython condition except win32
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
invesalius/invesalius.py
... | ... | @@ -27,9 +27,10 @@ import sys |
27 | 27 | if sys.platform == 'win32': |
28 | 28 | import _winreg |
29 | 29 | |
30 | -import wxversion | |
31 | -wxversion.ensureMinimal('2.8-unicode', optionsRequired=True) | |
32 | -wxversion.select('2.8-unicode', optionsRequired=True) | |
30 | +if sys.platform != 'win32': | |
31 | + import wxversion | |
32 | + wxversion.ensureMinimal('2.8-unicode', optionsRequired=True) | |
33 | + wxversion.select('2.8-unicode', optionsRequired=True) | |
33 | 34 | |
34 | 35 | import wx |
35 | 36 | import wx.lib.pubsub as ps | ... | ... |