From 0aa4eb258e093838706b783b1c6247b8f1d3f8c7 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Mon, 9 Apr 2007 15:29:13 +0000 Subject: [PATCH] Remove file check from _GrampsIniKeys.py. It is not needed. svn: r8371 --- ChangeLog | 3 +++ src/Config/_GrampsIniKeys.py | 10 ---------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7745df427..c3fcd8d26 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-04-09 Brian Matherly + * src/Config/_GrampsIniKeys.py: Remove file check - it is not needed. + 2007-04-09 Brian Matherly * src/plugins/Checkpoint.py: missing comma in Checkpoint.py. diff --git a/src/Config/_GrampsIniKeys.py b/src/Config/_GrampsIniKeys.py index 9feb108e7..bd1f66866 100644 --- a/src/Config/_GrampsIniKeys.py +++ b/src/Config/_GrampsIniKeys.py @@ -29,7 +29,6 @@ import time import ConfigParser import errno import const -from QuestionDialog import ErrorDialog from _GrampsConfigKeys import * NL = "\n" # FIX: newlines on Mac/Windows, if different? @@ -51,15 +50,6 @@ class IniKeyClient: self.filename = filename if self.filename and os.path.exists(filename): self.data = self.load_ini(self.filename) - elif self.filename and not os.path.exists(filename): - try: - head, tail = os.path.split( filename ) - os.makedirs( head ) - except OSError, e: - ErrorDialog(_("Unable to load preferences from %s") % - self.filename, - _("Preferences will not be loaded or saved.")) - self.filename = None def notify_add(self, path, func): """