[GRASS-SVN] r51391 - grass/trunk/scripts/g.extension

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 12 10:18:52 EDT 2012


Author: martinl
Date: 2012-04-12 07:18:51 -0700 (Thu, 12 Apr 2012)
New Revision: 51391

Modified:
   grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: fix r51390 (on windows)


Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py	2012-04-12 14:16:29 UTC (rev 51390)
+++ grass/trunk/scripts/g.extension/g.extension.py	2012-04-12 14:18:51 UTC (rev 51391)
@@ -950,7 +950,7 @@
         return # no match
     
     # replace file URIs
-    prefix = 'file://' + os.path.join(os.getenv('GISBASE'), 'docs', 'html')
+    prefix = 'file://' + '/'.join([os.getenv('GISBASE'), 'docs', 'html'])
     ohtml = shtml[:pos[0]]
     for i in range(1, len(pos)):
         ohtml += prefix + '/' + shtml[pos[i-1]:pos[i]]



More information about the grass-commit mailing list