From 4dc30d62767c22b75ec2f2c141903e51761cf11a Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Fri, 6 Apr 2012 21:57:18 +0000 Subject: [PATCH] Geography : no initialization for geography_path for new users svn: r19254 --- src/plugins/lib/maps/geography.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/plugins/lib/maps/geography.py b/src/plugins/lib/maps/geography.py index 155f66044..c67e138f4 100644 --- a/src/plugins/lib/maps/geography.py +++ b/src/plugins/lib/maps/geography.py @@ -60,7 +60,7 @@ from gui.editors import EditPlace, EditEvent, EditFamily, EditPerson from gui.selectors.selectplace import SelectPlace import osmgpsmap -from . import constants +import constants from osmGps import OsmGps from selectionlayer import SelectionLayer from placeselection import PlaceSelection @@ -73,6 +73,13 @@ from placeselection import PlaceSelection import logging _LOG = logging.getLogger("maps.geography") +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- +GEOGRAPHY_PATH = os.path.join(const.HOME_DIR, "maps") + #------------------------------------------------------------------------- # # Functions and variables @@ -102,7 +109,7 @@ class GeoGraphyView(OsmGps, NavigationView): """ #settings in the config file CONFIGSETTINGS = ( - ('geography.path', constants.GEOGRAPHY_PATH), + ('geography.path', GEOGRAPHY_PATH), ('geography.zoom', 10), ('geography.zoom_when_center', 12),