Geography : no initialization for geography_path for new users

svn: r19254
This commit is contained in:
Serge Noiraud 2012-04-06 21:57:18 +00:00
parent 5a642228c8
commit 4dc30d6276

View File

@ -60,7 +60,7 @@ from gui.editors import EditPlace, EditEvent, EditFamily, EditPerson
from gui.selectors.selectplace import SelectPlace from gui.selectors.selectplace import SelectPlace
import osmgpsmap import osmgpsmap
from . import constants import constants
from osmGps import OsmGps from osmGps import OsmGps
from selectionlayer import SelectionLayer from selectionlayer import SelectionLayer
from placeselection import PlaceSelection from placeselection import PlaceSelection
@ -73,6 +73,13 @@ from placeselection import PlaceSelection
import logging import logging
_LOG = logging.getLogger("maps.geography") _LOG = logging.getLogger("maps.geography")
#-------------------------------------------------------------------------
#
# Constants
#
#-------------------------------------------------------------------------
GEOGRAPHY_PATH = os.path.join(const.HOME_DIR, "maps")
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# Functions and variables # Functions and variables
@ -102,7 +109,7 @@ class GeoGraphyView(OsmGps, NavigationView):
""" """
#settings in the config file #settings in the config file
CONFIGSETTINGS = ( CONFIGSETTINGS = (
('geography.path', constants.GEOGRAPHY_PATH), ('geography.path', GEOGRAPHY_PATH),
('geography.zoom', 10), ('geography.zoom', 10),
('geography.zoom_when_center', 12), ('geography.zoom_when_center', 12),