Configtool: try to educate the user about missing wxPython.
Should help to tackle issue #151.
This commit is contained in:
parent
e53424ba22
commit
8efc804cf3
|
|
@ -7,7 +7,14 @@ if sys.version_info.major >= 3:
|
|||
"It often works to type \"python2 configtool.py\" in the command line.")
|
||||
sys.exit(-1)
|
||||
|
||||
try:
|
||||
import wx
|
||||
except:
|
||||
print("ImportError: No module named wx\n\n"
|
||||
"wxPython is not installed. This program requires wxPython to run.\n"
|
||||
"See your package manager and/or http://wxpython.org/download.php.")
|
||||
sys.exit(-1)
|
||||
|
||||
import os.path
|
||||
import inspect
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue