mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 00:22:12 +00:00
Enforcing python version in scripts (#7620)
This commit is contained in:
committed by
GitHub
parent
4a9d50ca34
commit
6b5b3fc592
8
tools/python_version_check.py
Normal file
8
tools/python_version_check.py
Normal 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)
|
||||
Reference in New Issue
Block a user