From 8efc804cf3759d87440335e57d594e8727709a1f Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Wed, 27 May 2015 14:20:00 +0200 Subject: [PATCH] Configtool: try to educate the user about missing wxPython. Should help to tackle issue #151. --- configtool.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configtool.py b/configtool.py index fa1c8d6..f9bef25 100755 --- a/configtool.py +++ b/configtool.py @@ -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) -import wx +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