version check
This commit is contained in:
parent
f1a34e3fcd
commit
c71ca0632a
1 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,12 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import signal
|
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
|
# set up enviroment
|
||||||
os.chdir(sys.path[0] or '.') # do stuff relative to the install directory
|
os.chdir(sys.path[0] or '.') # do stuff relative to the install directory
|
||||||
|
|
||||||
|
|
Reference in a new issue