[GRASS-SVN] r59764 - grass/branches/releasebranch_6_4/gui/scripts

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 17 08:58:25 PDT 2014


Author: martinl
Date: 2014-04-17 08:58:25 -0700 (Thu, 17 Apr 2014)
New Revision: 59764

Modified:
   grass/branches/releasebranch_6_4/gui/scripts/g.extension.py
Log:
g.extension.py: modify bat files similarly to bash scripts, use GRASS_ADDON_PATH instead of hardcoded path

Modified: grass/branches/releasebranch_6_4/gui/scripts/g.extension.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/scripts/g.extension.py	2014-04-17 11:09:20 UTC (rev 59763)
+++ grass/branches/releasebranch_6_4/gui/scripts/g.extension.py	2014-04-17 15:58:25 UTC (rev 59764)
@@ -634,7 +634,7 @@
                                        options['extension']) + EXT_SCT,
                                        inplace = True):
             line = line.replace("/scripts", "")
-            line = line.replace("%GISBASE%", options['prefix'])
+            line = line.replace("%GISBASE%", "%GRASS_ADDON_PATH%") # options['prefix'])
             if is_python_script:
                 line = line.replace("GRASS_SH", "GRASS_PYTHON")
             print line



More information about the grass-commit mailing list