From 47f14fcf1d03d9dad1bae59987488ea05ecd307b Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 25 Nov 2020 14:34:09 +0100 Subject: be more verbose --- pyvercheck.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pyvercheck.py') diff --git a/pyvercheck.py b/pyvercheck.py index 98e620b..02e45b5 100644 --- a/pyvercheck.py +++ b/pyvercheck.py @@ -1,7 +1,12 @@ # This file is placed in the public domain. +# Detect the Python version in a portable way. +# + import sys +sys.stderr.write("info: running with python " + str(sys.version_info) + "\n") + if sys.version_info.major < 3 or sys.version_info.minor < 7: sys.stderr.write("error: python>=3.7 must be available as the python3 executable\n") sys.exit(1) -- cgit v1.2.3