.ini settings
svn: r6186
This commit is contained in:
@@ -28,6 +28,7 @@ import os
|
||||
import time
|
||||
import ConfigParser
|
||||
import errno
|
||||
import const
|
||||
|
||||
NL = "\n" # FIX: newlines on Mac/Windows, if different?
|
||||
|
||||
@@ -199,7 +200,7 @@ class IniKeyClient:
|
||||
def suggest_sync(self):
|
||||
self.save_ini() # save back to default file, if named
|
||||
|
||||
client = IniKeyClient(os.path.expanduser("~" + os.sep + ".gramps" + os.sep + "keys.ini"))
|
||||
client = IniKeyClient(os.path.join(const.home_dir,"keys.ini"))
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
@@ -25,7 +25,12 @@ This package implements access to GRAMPS configuration.
|
||||
It provides the choice between different storage backends.
|
||||
"""
|
||||
|
||||
try:
|
||||
from _GrampsGconfKeys import *
|
||||
except:
|
||||
import const
|
||||
|
||||
if const.no_gconf:
|
||||
from _GrampsIniKeys import *
|
||||
else:
|
||||
try:
|
||||
from _GrampsGconfKeys import *
|
||||
except:
|
||||
from _GrampsIniKeys import *
|
||||
|
Reference in New Issue
Block a user