Skip to content

Commit 0423faf

Browse files
author
Laurent Dufrechou
committed
add a check to verify is wx.aui is present on the system.\n Else tells the user to install wxpython > 2.8.0
1 parent bd2866b commit 0423faf

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎IPython/gui/wx/wxIPython.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
#!/usr/bin/python
22
# -*- coding: iso-8859-15 -*-
33

4-
import wx.aui
54
import sys
5+
try:
6+
import wx.aui
7+
except ImportError:
8+
print "Can't laod wx.aui module, please check that you have installed wxpython > 2.8 and taht it is your default install"
9+
sys.exit(1)
10+
611
#used for about dialog
712
from wx.lib.wordwrap import wordwrap
813

0 commit comments

Comments
 (0)