[GRASS-SVN] r73337 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 15 19:22:15 PDT 2018


Author: wenzeslaus
Date: 2018-09-15 19:22:14 -0700 (Sat, 15 Sep 2018)
New Revision: 73337

Modified:
   grass/trunk/lib/init/grass.py
Log:
init: remove basically dead code to clean mapset .tmp in default startup (see #3635)

The default (fallback) startup contained code which was probably from the
original Python rewrite (r37863) and maybe originated from workaround in r21048.
The clean_temp tool is called and takes care of cleaning, so this should not
be neccessary, not even for GUI (mentioned in the comment). GUI is not using
mapset temporary directory since r73334 (#3637).


Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2018-09-16 02:08:00 UTC (rev 73336)
+++ grass/trunk/lib/init/grass.py	2018-09-16 02:22:14 UTC (rev 73337)
@@ -1786,9 +1786,6 @@
         os.environ['PS1'] = "GRASS %s> " % (grass_version)
         # "$ETC/run" doesn't work at all???
         process = subprocess.Popen([os.getenv('SHELL')])
-        # TODO: is there a difference between this and clean_temp?
-        # TODO: why this is missing in the other startups?
-        cleanup_dir(os.path.join(location, ".tmp"))  # remove GUI session files from .tmp
     else:
         os.environ['PS1'] = "GRASS %s (%s):\\w > " % (grass_version, location_name)
         process = Popen([gpath("etc", "run"), os.getenv('SHELL')])



More information about the grass-commit mailing list