From 389dfdd3a171539946827905526c1dfa058e0467 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Thu, 4 Jun 2015 18:17:54 +0200 Subject: [PATCH] Configtool: wait before erroring out. When double-clicking configtool.py, these error messages are never visible, because the window running the command closes immediately. Give 10 seconds for reading. This is related to issue #158. --- configtool.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configtool.py b/configtool.py index 2dd4833..51227e6 100755 --- a/configtool.py +++ b/configtool.py @@ -1,10 +1,12 @@ #!/usr/bin/env python import sys +import time 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.") + time.sleep(10) sys.exit(-1) try: @@ -13,6 +15,7 @@ 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.") + time.sleep(10) sys.exit(-1) import os.path