Added a check at startup for python version

This commit is contained in:
HomeWorld
2011-01-14 12:16:52 +02:00
parent b6ee5a66a1
commit f63b867cee

View File

@@ -21,6 +21,11 @@
import sys
if not hasattr(sys, 'frozen'):
if sys.version_info < (2,6) or sys.version_info > (3,0):
print "Pyfa requires python 2.x branch ( >= 2.6 )\nExiting."
sys.exit(1)
try:
import wxversion
wxversion.ensureMinimal('2.8')