Created
December 3, 2015 04:00
-
-
Save bryder/8936c6b4569ef0c1de5a to your computer and use it in GitHub Desktop.
Check module version in python is a minimum
This file contains hidden or 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
from distutils.version import LooseVersion | |
if LooseVersion(thing.__version__) < LooseVersion('1.11.1'): | |
exit("Use the right version dude") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment