version check

This commit is contained in:
Luke Rogers 2013-10-03 22:40:09 +13:00
parent f1a34e3fcd
commit c71ca0632a

View file

@ -5,6 +5,12 @@ import os
import sys
import signal
# check python version
if sys.version_info < (2, 7, 0):
print "CloudBot requires Python 2.7 or newer."
sys.stderr.write(os.linesep)
sys.exit(1)
# set up enviroment
os.chdir(sys.path[0] or '.') # do stuff relative to the install directory