Move the entire Gramps dir under "Application Data" in Windows.

svn: r9583
This commit is contained in:
Brian Matherly 2007-12-25 05:54:41 +00:00
parent b4368a7b3a
commit 7067817868
2 changed files with 8 additions and 1 deletions

View File

@ -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>
* src/Config/_GrampsConfigKeys.py: Fix database dir under windows.

View File

@ -73,6 +73,9 @@ SYSCONFDIR = "@sysconfdir@"
#-------------------------------------------------------------------------
if os.environ.has_key('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')
else:
USER_HOME = os.environ['HOME']