[GRASS-SVN] r52551 - grass-addons/grass7/imagery/i.histo.match

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 6 05:27:23 PDT 2012


Author: lucadelu
Date: 2012-08-06 05:27:23 -0700 (Mon, 06 Aug 2012)
New Revision: 52551

Modified:
   grass-addons/grass7/imagery/i.histo.match/i.histo.match.py
Log:
fix problem on windows

Modified: grass-addons/grass7/imagery/i.histo.match/i.histo.match.py
===================================================================
--- grass-addons/grass7/imagery/i.histo.match/i.histo.match.py	2012-08-06 09:07:34 UTC (rev 52550)
+++ grass-addons/grass7/imagery/i.histo.match/i.histo.match.py	2012-08-06 12:27:23 UTC (rev 52551)
@@ -63,7 +63,7 @@
     max_value = int(options['max']) + 1
     # if the db path is the default one
     if dbopt.find('$GISDBASE/$LOCATION_NAME/$MAPSET') == 0:
-        dbopt_split = dbopt.split(os.sep)[-1]
+        dbopt_split = dbopt.split('/')[-1]
         env = grass.gisenv()
         path = os.path.join(env['GISDBASE'], env['LOCATION_NAME'], env['MAPSET'])
         dbpath = os.path.join(path, dbopt_split)



More information about the grass-commit mailing list