[GRASS-SVN] r53490 - grass/branches/develbranch_6/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Oct 19 04:00:28 PDT 2012
Author: martinl
Date: 2012-10-19 04:00:27 -0700 (Fri, 19 Oct 2012)
New Revision: 53490
Modified:
grass/branches/develbranch_6/gui/wxpython/core/utils.py
Log:
wxGUI: fix env file path on MS Windows
Modified: grass/branches/develbranch_6/gui/wxpython/core/utils.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/core/utils.py 2012-10-19 10:55:46 UTC (rev 53489)
+++ grass/branches/develbranch_6/gui/wxpython/core/utils.py 2012-10-19 11:00:27 UTC (rev 53490)
@@ -793,8 +793,9 @@
if not windows:
envFile = os.path.join(os.getenv('HOME'), '.grass.bashrc')
else:
- envFile = os.path.join(os.getenv('APPDATA'), 'GRASS%d' % version, 'env.bat')
-
+ gVersion = grass.version()['version'].split('.', 1)[0]
+ envFile = os.path.join(os.getenv('APPDATA'), 'GRASS%s' % gVersion, 'env.bat')
+
# read env file
environ = dict()
if os.path.exists(envFile):
More information about the grass-commit
mailing list