gentoo/dev-python/python-dsv/files/python-dsv-1.4.1-wxversion.patch
2016-11-29 21:45:31 +01:00

17 lines
319 B
Diff

--- a/DSV/DSV.py
+++ b/DSV/DSV.py
@@ -134,6 +134,13 @@
os.putenv('LANG', 'C')
try:
+ import wxversion
+ wxversion.select("2.8")
+except Exception, e:
+ print >> sys.stderr, "%s: wxPython 2.8 not installed." %e
+ sys.exit(1)
+
+try:
from wxPython import wx, grid
except ImportError:
wx = None