[GRASS-SVN] r40086 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 20 07:42:29 EST 2009
Author: martinl
Date: 2009-12-20 07:42:29 -0500 (Sun, 20 Dec 2009)
New Revision: 40086
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
Log:
don't fail if GRASS_PROJSHARE is not defined
(merge r40085 from trunk)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py 2009-12-20 12:35:46 UTC (rev 40085)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py 2009-12-20 12:42:29 UTC (rev 40086)
@@ -1,4 +1,4 @@
-"""
+"""!
@package preferences
@brief User preferences dialog
@@ -55,6 +55,11 @@
#
self.sep = ';'
+ try:
+ projFile = utils.PathJoin(os.environ["GRASS_PROJSHARE"], 'epsg')
+ except KeyError:
+ projFile = ''
+
#
# default settings
#
@@ -125,7 +130,7 @@
'statusbar' : {
'proj4' : '',
'epsg' : '',
- 'projFile' : utils.PathJoin(os.environ["GRASS_PROJSHARE"], 'epsg'),
+ 'projFile' : projFile,
},
'format' : {
'll' : 'DMS',
More information about the grass-commit
mailing list