Created
February 3, 2014 16:21
-
-
Save sentenza/8786980 to your computer and use it in GitHub Desktop.
Check for Python version in a script > https://github.com/pypa/virtualenv/blob/develop/virtualenv.py#L26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if sys.version_info < (2, 6): | |
print('ERROR: %s' % sys.exc_info()[1]) | |
print('ERROR: this script requires Python 2.6 or greater.') | |
sys.exit(101) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment