[GRASS-SVN] r73732 - grass/branches/releasebranch_7_6/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 30 03:56:29 PST 2018


Author: neteler
Date: 2018-11-30 03:56:29 -0800 (Fri, 30 Nov 2018)
New Revision: 73732

Modified:
   grass/branches/releasebranch_7_6/lib/init/grass.py
Log:
init: report when rc file is empty (trunk, r73263)

Useful filename is reported only later on (home), here the one in /tmp.


Modified: grass/branches/releasebranch_7_6/lib/init/grass.py
===================================================================
--- grass/branches/releasebranch_7_6/lib/init/grass.py	2018-11-30 11:51:58 UTC (rev 73731)
+++ grass/branches/releasebranch_7_6/lib/init/grass.py	2018-11-30 11:56:29 UTC (rev 73732)
@@ -500,6 +500,8 @@
                           line=line, error=e, file=filename))
             continue
         kv[k.strip()] = v.strip()
+    if not kv:
+        warning(_("Empty RC file ({file})").format(file=filename))
     f.close()
 
     return kv



More information about the grass-commit mailing list