[GRASS-SVN] r59765 - grass/branches/develbranch_6/gui/scripts
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 17 08:59:39 PDT 2014
Author: martinl
Date: 2014-04-17 08:59:39 -0700 (Thu, 17 Apr 2014)
New Revision: 59765
Modified:
grass/branches/develbranch_6/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/develbranch_6/gui/scripts/g.extension.py
===================================================================
--- grass/branches/develbranch_6/gui/scripts/g.extension.py 2014-04-17 15:58:25 UTC (rev 59764)
+++ grass/branches/develbranch_6/gui/scripts/g.extension.py 2014-04-17 15:59:39 UTC (rev 59765)
@@ -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