2008-02-25 Łukasz Rymarczyk <yenidai(at)poczta(dot)onet(dot)pl>
* src/const.py.in: query os.environ for GRAMPSHOME env and use it 0001831: A patch allowing using a different home folder than default svn: r10120
This commit is contained in:
parent
e9d978d646
commit
658d49407c
@ -1,4 +1,8 @@
|
|||||||
2008-02-20 Frederik De Richter <frederik.de.richter@pandora.be>
|
2008-02-25 Łukasz Rymarczyk <yenidai(at)poczta(dot)onet(dot)pl>
|
||||||
|
* src/const.py.in: query os.environ for GRAMPSHOME env and use it
|
||||||
|
0001831: A patch allowing using a different home folder than default
|
||||||
|
|
||||||
|
2008-02-25 Frederik De Richter <frederik.de.richter@pandora.be>
|
||||||
* src/GrampsLogger/_ErrorView.py
|
* src/GrampsLogger/_ErrorView.py
|
||||||
links to wiki manual
|
links to wiki manual
|
||||||
|
|
||||||
|
@ -74,7 +74,10 @@ SYSCONFDIR = "@sysconfdir@"
|
|||||||
# Windows apparently uses USERPROFILE
|
# Windows apparently uses USERPROFILE
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
if os.environ.has_key('USERPROFILE'):
|
if os.environ.has_key('GRAMPSHOME'):
|
||||||
|
USER_HOME = os.environ['GRAMPSHOME']
|
||||||
|
HOME_DIR = os.path.join(USER_HOME, 'gramps')
|
||||||
|
elif os.environ.has_key('USERPROFILE'):
|
||||||
USER_HOME = os.environ['USERPROFILE']
|
USER_HOME = os.environ['USERPROFILE']
|
||||||
if os.environ.has_key('APPDATA'):
|
if os.environ.has_key('APPDATA'):
|
||||||
HOME_DIR = os.path.join(os.environ['APPDATA'], 'gramps')
|
HOME_DIR = os.path.join(os.environ['APPDATA'], 'gramps')
|
||||||
|
Loading…
Reference in New Issue
Block a user