[GRASS-SVN] r73405 - grass-addons/grass7/imagery/i.modis/i.modis.download

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 26 00:03:41 PDT 2018


Author: lucadelu
Date: 2018-09-26 00:03:41 -0700 (Wed, 26 Sep 2018)
New Revision: 73405

Modified:
   grass-addons/grass7/imagery/i.modis/i.modis.download/i.modis.download.py
Log:
i.modis.download: print warning if data will be downloaded into temporary folder

Modified: grass-addons/grass7/imagery/i.modis/i.modis.download/i.modis.download.py
===================================================================
--- grass-addons/grass7/imagery/i.modis/i.modis.download/i.modis.download.py	2018-09-26 01:08:44 UTC (rev 73404)
+++ grass-addons/grass7/imagery/i.modis/i.modis.download/i.modis.download.py	2018-09-26 07:03:41 UTC (rev 73405)
@@ -210,6 +210,11 @@
         # set the folder from path where settings file is stored
         else:
             path = os.path.split(options['settings'])[0]
+            temp = os.path.split(grass.tempfile())[0]
+            if temp in path:
+                grass.warning(_("You are downloading data in a temporary "
+                                "directory. They will diseappear when you "
+                                "will finish this GRASS session"))
             if check(path):
                 fold = path
     # check the version



More information about the grass-commit mailing list