7 if sys
.version_info
< (2,4,0):
8 # This is a bad start, but let's see if there is a python2.4 around:
10 if "PATH" in os
.environ
:
11 for dir in os
.environ
["PATH"].split(os
.pathsep
):
12 if os
.path
.exists(dir + os
.sep
+ "python2.4"):
16 print "Unfortunately you need Python 2.4 or later to run Switzerland."
17 print "Please install Python 2.4+"
18 print "(or send us a patch so that Switzerland runs with your version of Python ;)"
21 print "It looks like Python2.4 is installed on your system, but it is not the"
22 print 'default Python version. Try running switzerland using "python2.4" '
23 print 'instead of "python"'
29 from switzerland
.server
import Switzerland
32 sys
.path
.append('/usr/local/lib/python2.5/site-packages/')
33 sys
.path
.append('/usr/lib/python2.5/site-packages/')
37 from switzerland
.server
import Switzerland
39 print >> sys
.stderr
, \
40 'Error: cannot load server. Please check your $PYTHONPATH.'