Added check for python > 3.0

This commit is contained in:
Paolo 2019-09-28 21:53:48 +02:00 committed by Paolo
parent 994e8bd3fa
commit ee5e630c7e
1 changed files with 2 additions and 2 deletions

View File

@ -88,8 +88,8 @@ def reporthook(count, block_size, total_size):
def main():
# Check minimal Python version is 2.7
if sys.version_info < (2, 7):
sys.stderr.write('You need Python 2.7 or later\n')
if sys.version_info < (3, 0):
sys.stderr.write('You need Python 3 or later\n')
sys.exit(1)
dest = os.path.dirname(os.path.abspath(__file__))