geography : display a message is no osmgpsmap library available.

svn: r17254
This commit is contained in:
Serge Noiraud 2011-04-25 13:49:36 +00:00
parent 74c112f684
commit ae71bd812f

View File

@ -32,7 +32,8 @@ try :
OSMGPSMAP = True
except:
OSMGPSMAP = False
pass
print _("WARNING: osmgpsmap module not loaded. "
"Geography functionality will not be available.")
if OSMGPSMAP:
# Load the view only if osmgpsmap library is present.