Enforcing python version in scripts (#7620)

This commit is contained in:
Mykhailo Bykhovtsev
2020-06-26 02:49:34 -07:00
committed by GitHub
parent 4a9d50ca34
commit 6b5b3fc592
20 changed files with 95 additions and 27 deletions

View File

@@ -0,0 +1,8 @@
import sys
version = (3, 4) # Check if python version is greater that this.
if sys.version_info < version:
print("Sorry, this requires python >= {}. Your version is {}!".format(version, tuple(sys.version_info)))
exit(1)
exit(0)