Useful filename is reported only later on (home), here the one in /tmp. git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73263 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -542,6 +542,8 @@ def read_gisrc(filename):
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