From b4368a7b3a5cccbb64a8001879c710c214edff28 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Tue, 25 Dec 2007 05:35:58 +0000 Subject: [PATCH] Fix database dir under windows. svn: r9582 --- ChangeLog | 3 +++ src/Config/_GrampsConfigKeys.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f26c60234..9734705fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-12-24 Brian Matherly + * src/Config/_GrampsConfigKeys.py: Fix database dir under windows. + 2007-12-24 Brian Matherly * src/ReportBase/_GraphvizReportDialog.py: Fix default font. diff --git a/src/Config/_GrampsConfigKeys.py b/src/Config/_GrampsConfigKeys.py index 2fc71ded6..bce4fc1a8 100644 --- a/src/Config/_GrampsConfigKeys.py +++ b/src/Config/_GrampsConfigKeys.py @@ -20,6 +20,9 @@ # $Id$ +import const +import os + """ Adding a new configuration key: @@ -216,7 +219,7 @@ default_value = { PEDVIEW_LAYOUT : 0, PEDVIEW_SHOW_MARRIAGE: False, PEDVIEW_SHOW_IMAGES : True, - DATABASE_PATH : '~/.gramps/grampsdb', + DATABASE_PATH : os.path.join( const.HOME_DIR, 'grampsdb'), FPREFIX : 'F%04d', EPREFIX : 'E%04d', RPREFIX : 'R%04d',