[GRASS-SVN] r41475 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 19 06:24:17 EDT 2010
Author: glynn
Date: 2010-03-19 06:24:08 -0400 (Fri, 19 Mar 2010)
New Revision: 41475
Modified:
grass/trunk/lib/init/grass.py
Log:
Windows fixes
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2010-03-18 23:33:06 UTC (rev 41474)
+++ grass/trunk/lib/init/grass.py 2010-03-19 10:24:08 UTC (rev 41475)
@@ -36,7 +36,7 @@
grass_version = "@GRASS_VERSION_NUMBER@"
ld_library_path_var = '@LD_LIBRARY_PATH_VAR@'
config_projshare = "@CONFIG_PROJSHARE@"
-grass_config_dir = os.path.join(os.getenv('HOME'), "@GRASS_CONFIG_DIR@")
+grass_config_dirname = "@GRASS_CONFIG_DIR@"
gisbase = os.path.normpath(gisbase)
@@ -818,6 +818,12 @@
if windows and not os.getenv('HOME'):
os.environ['HOME'] = os.path.join(os.getenv('HOMEDRIVE'), os.getenv('HOMEPATH'))
+# set SHELL
+if windows and not os.getenv('SHELL'):
+ os.environ['SHELL'] = os.getenv('COMSPEC', 'cmd.exe')
+
+grass_config_dir = os.path.join(os.getenv('HOME'), grass_config_dirname)
+
atexit.register(cleanup)
# Set default GUI
More information about the grass-commit
mailing list