Remove file check from _GrampsIniKeys.py. It is not needed.

svn: r8371
This commit is contained in:
Brian Matherly 2007-04-09 15:29:13 +00:00
parent 61cff42d53
commit 50bc2f63cb
2 changed files with 3 additions and 10 deletions

View File

@ -1,3 +1,6 @@
2007-04-09 Brian Matherly <brian@gramps-project.org>
* src/Config/_GrampsIniKeys.py: Remove file check - it is not needed.
2007-04-09 Brian Matherly <brian@gramps-project.org> 2007-04-09 Brian Matherly <brian@gramps-project.org>
* src/plugins/Checkpoint.py: missing comma in Checkpoint.py. * src/plugins/Checkpoint.py: missing comma in Checkpoint.py.

View File

@ -29,7 +29,6 @@ import time
import ConfigParser import ConfigParser
import errno import errno
import const import const
from QuestionDialog import ErrorDialog
from _GrampsConfigKeys import * from _GrampsConfigKeys import *
NL = "\n" # FIX: newlines on Mac/Windows, if different? NL = "\n" # FIX: newlines on Mac/Windows, if different?
@ -51,15 +50,6 @@ class IniKeyClient:
self.filename = filename self.filename = filename
if self.filename and os.path.exists(filename): if self.filename and os.path.exists(filename):
self.data = self.load_ini(self.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): def notify_add(self, path, func):
""" """