check_python_version.py 153 Bytes
Newer Older
1 2 3 4 5 6 7 8


import sys

PY_REQUIRED = (2, 7)
if sys.version_info < PY_REQUIRED:
    print("This script requires Python >= %d.%d." % (PY_REQUIRED))
    sys.exit(1)