geography : osmgpsmap must be >= 0.7.0

svn: r17292
This commit is contained in:
Serge Noiraud 2011-04-27 10:39:01 +00:00
parent 531d68c7bd
commit 340a1aab5e

View File

@ -30,6 +30,11 @@
try :
import osmgpsmap
OSMGPSMAP = True
if osmgpsmap.__version__ < '0.7.0':
OSMGPSMAP = False
import sys
print >> sys.stderr, _("WARNING: osmgpsmap module not loaded. "
"osmgpsmap must be >= 0.7.0. yours is %s" % osmgpsmap.__version__ )
except:
OSMGPSMAP = False
import sys