|
|
|
@ -11,17 +11,10 @@ import sys
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
# Checking if the user is using the correct version of Python
|
|
|
|
|
# Reference:
|
|
|
|
|
# If Python version is 3.6.5
|
|
|
|
|
# major --^
|
|
|
|
|
# minor ----^
|
|
|
|
|
# micro ------^
|
|
|
|
|
major = sys.version_info[0]
|
|
|
|
|
minor = sys.version_info[1]
|
|
|
|
|
# Check if the user is using the correct version of Python
|
|
|
|
|
python_version = sys.version.split()[0]
|
|
|
|
|
|
|
|
|
|
if major != 3 or major == 3 and minor < 6:
|
|
|
|
|
python_version = str(major) + "." + str(minor) + "." + str(sys.version_info[2])
|
|
|
|
|
if sys.version_info < (3, 6):
|
|
|
|
|
print("Sherlock requires Python 3.6+\nYou are using Python %s, which is not supported by Sherlock" % (python_version))
|
|
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
|
|