Added test for the Python version so people could understand when their bot wouldn't run. Now it won't even install :)

This commit is contained in:
Jeremy Fincher 2003-09-25 02:46:33 +00:00
parent 4a6dd9740b
commit 0f3f15235d
1 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,12 @@
# POSSIBILITY OF SUCH DAMAGE.
###
import sys
if sys.version_info < (2, 3, 0):
sys.stderr.write("Supybot requires Python 2.3 or newer.\n")
sys.exit(-1)
import glob
import os.path