[GRASS-SVN] r61706 - grass/branches/releasebranch_7_0/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 20 08:35:35 PDT 2014


Author: wenzeslaus
Date: 2014-08-20 08:35:35 -0700 (Wed, 20 Aug 2014)
New Revision: 61706

Modified:
   grass/branches/releasebranch_7_0/lib/init/grass.py
Log:
using sys.platform to determine if running in Cygwin (backport of r61705)

Modified: grass/branches/releasebranch_7_0/lib/init/grass.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/init/grass.py	2014-08-20 15:34:25 UTC (rev 61705)
+++ grass/branches/releasebranch_7_0/lib/init/grass.py	2014-08-20 15:35:35 UTC (rev 61706)
@@ -897,7 +897,7 @@
     global sh, shellname, grass_env_file
     # cygwin has many problems with the shell setup
     # below, so i hardcoded everything here.
-    if os.getenv('CYGWIN'):
+    if sys.platform == 'cygwin':
         sh = "cygwin"
         shellname = "GNU Bash (Cygwin)"
         os.environ['SHELL'] = "/usr/bin/bash.exe"



More information about the grass-commit mailing list