[GRASS-git] [OSGeo/grass] 908325: init: Remove duplicate mapset cleaning code, use v...
Vaclav Petras
noreply at github.com
Wed Jul 27 03:57:09 PDT 2022
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 908325a0e51169a211df188f8a62c5876c9922db
https://github.com/OSGeo/grass/commit/908325a0e51169a211df188f8a62c5876c9922db
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2022-07-27 (Wed, 27 Jul 2022)
Changed paths:
M lib/init/grass.py
M python/grass/script/setup.py
Log Message:
-----------
init: Remove duplicate mapset cleaning code, use verbose (#2455)
* Remove code duplication between init code in grass.py and grass.script.setup for mapset temporary directory cleaning.
* Simplify the code by using subprocess.DEVNULL instead of os.devnull.
* Change the cleaning message to verbose.
* Document both functions.
More information about the grass-commit
mailing list