Move the entire Gramps dir under "Application Data" in Windows.
svn: r9583
This commit is contained in:
parent
b4368a7b3a
commit
7067817868
@ -1,3 +1,7 @@
|
|||||||
|
2007-12-24 Brian Matherly <brian@gramps-project.org>
|
||||||
|
* src/const.py.in: Move the entire Gramps dir under "Application Data" in
|
||||||
|
Windows.
|
||||||
|
|
||||||
2007-12-24 Brian Matherly <brian@gramps-project.org>
|
2007-12-24 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/Config/_GrampsConfigKeys.py: Fix database dir under windows.
|
* src/Config/_GrampsConfigKeys.py: Fix database dir under windows.
|
||||||
|
|
||||||
|
@ -73,6 +73,9 @@ SYSCONFDIR = "@sysconfdir@"
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
if os.environ.has_key('USERPROFILE'):
|
if os.environ.has_key('USERPROFILE'):
|
||||||
USER_HOME = os.environ['USERPROFILE']
|
USER_HOME = os.environ['USERPROFILE']
|
||||||
|
if os.environ.has_key('APPDATA'):
|
||||||
|
HOME_DIR = os.path.join(os.environ['APPDATA'], 'gramps')
|
||||||
|
else:
|
||||||
HOME_DIR = os.path.join(USER_HOME, 'gramps')
|
HOME_DIR = os.path.join(USER_HOME, 'gramps')
|
||||||
else:
|
else:
|
||||||
USER_HOME = os.environ['HOME']
|
USER_HOME = os.environ['HOME']
|
||||||
|
Loading…
Reference in New Issue
Block a user