[GRASS-SVN] r72095 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 16 23:59:25 PST 2018


Author: martinl
Date: 2018-01-16 23:59:24 -0800 (Tue, 16 Jan 2018)
New Revision: 72095

Modified:
   grass/trunk/lib/init/grass.py
Log:
grass.py: workaround for bug related to OS X, see #3462

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2018-01-16 20:57:43 UTC (rev 72094)
+++ grass/trunk/lib/init/grass.py	2018-01-17 07:59:24 UTC (rev 72095)
@@ -1620,7 +1620,9 @@
         if not os.access(env_file, os.R_OK):
             continue
         for line in readfile(env_file).splitlines():
-            if not line.startswith('export'):
+            # Bug related to OS X "SIP", see
+            # https://trac.osgeo.org/grass/ticket/3462#comment:13
+            if macosx or not line.startswith('export'):
                 f.write(line + '\n')
 
     f.write("export PATH=\"%s\"\n" % os.getenv('PATH'))



More information about the grass-commit mailing list