From e53424ba22e4ff1c07eb9e9604e00912429f262e Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Wed, 27 May 2015 14:08:49 +0200 Subject: [PATCH] Configtool: try to educate the user about the non-support of Python3. Let's cross fingers this helps enough to avoid users kicking this great tool away on the first failed try. :-) This should help to tackle issue #151. --- configtool.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configtool.py b/configtool.py index d3deda3..fa1c8d6 100755 --- a/configtool.py +++ b/configtool.py @@ -1,5 +1,12 @@ #!/usr/bin/env python +import sys +if sys.version_info.major >= 3: + print("You are currently running Python3. Python3 is not supported, because\n" + "there is no wxPython for Python3. Please try running with Python2.\n" + "It often works to type \"python2 configtool.py\" in the command line.") + sys.exit(-1) + import wx import os.path import inspect