.ini settings
svn: r6186
This commit is contained in:
parent
e6f0bf7dda
commit
0328a4a943
@ -1,3 +1,7 @@
|
|||||||
|
2006-03-20 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/const.py.in: fix path combination
|
||||||
|
* src/Config/__init__.py: actually pay attention to no_gconf
|
||||||
|
|
||||||
2006-03-20 Brian Matherly <pez4brian@users.sourceforge.net>
|
2006-03-20 Brian Matherly <pez4brian@users.sourceforge.net>
|
||||||
* src/GrampsDb/_GrampsIniKeys.py: os independent path
|
* src/GrampsDb/_GrampsIniKeys.py: os independent path
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ import os
|
|||||||
import time
|
import time
|
||||||
import ConfigParser
|
import ConfigParser
|
||||||
import errno
|
import errno
|
||||||
|
import const
|
||||||
|
|
||||||
NL = "\n" # FIX: newlines on Mac/Windows, if different?
|
NL = "\n" # FIX: newlines on Mac/Windows, if different?
|
||||||
|
|
||||||
@ -199,7 +200,7 @@ class IniKeyClient:
|
|||||||
def suggest_sync(self):
|
def suggest_sync(self):
|
||||||
self.save_ini() # save back to default file, if named
|
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.
|
It provides the choice between different storage backends.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
import const
|
||||||
from _GrampsGconfKeys import *
|
|
||||||
except:
|
if const.no_gconf:
|
||||||
from _GrampsIniKeys import *
|
from _GrampsIniKeys import *
|
||||||
|
else:
|
||||||
|
try:
|
||||||
|
from _GrampsGconfKeys import *
|
||||||
|
except:
|
||||||
|
from _GrampsIniKeys import *
|
||||||
|
@ -79,9 +79,9 @@ no_gconf = False
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
if os.environ.has_key('HOME'):
|
if os.environ.has_key('HOME'):
|
||||||
home_dir = os.path(os.environ['HOME'],'.gramps')
|
home_dir = os.path.join(os.environ['HOME'],'.gramps')
|
||||||
else:
|
else:
|
||||||
home_dir = os.path(os.environ['USERPROFILE'],'gramps')
|
home_dir = os.path.join(os.environ['USERPROFILE'],'gramps')
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user