[GRASS-SVN] r71019 - grass-addons/grass7/raster/r.modis/r.modis.import

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 4 00:29:38 PDT 2017


Author: lucadelu
Date: 2017-05-04 00:29:38 -0700 (Thu, 04 May 2017)
New Revision: 71019

Modified:
   grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.py
Log:
r.modis: fixed bug

Modified: grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.py
===================================================================
--- grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.py	2017-05-04 06:57:45 UTC (rev 71018)
+++ grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.py	2017-05-04 07:29:38 UTC (rev 71019)
@@ -527,7 +527,7 @@
         count = 0
     outfile = None
     if options['outfile']:
-        outfile = options['outfile']
+        outfile = open(options['outfile'], 'w')
     elif flags['w'] and not options['outfile'] and count == 1:
         outfile = tempfile.NamedTemporaryFile(delete=False)
     elif flags['w'] and count != 1:



More information about the grass-commit mailing list