[GRASS-SVN] r46491 - grass/trunk/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 1 16:21:54 EDT 2011


Author: martinl
Date: 2011-06-01 13:21:54 -0700 (Wed, 01 Jun 2011)
New Revision: 46491

Modified:
   grass/trunk/lib/python/core.py
Log:
pythonlib: use_temp_region() overrides region silently


Modified: grass/trunk/lib/python/core.py
===================================================================
--- grass/trunk/lib/python/core.py	2011-06-01 20:20:56 UTC (rev 46490)
+++ grass/trunk/lib/python/core.py	2011-06-01 20:21:54 UTC (rev 46491)
@@ -552,7 +552,7 @@
     handler to delete the temporary region upon termination.
     """
     name = "tmp.%s.%d" % (os.path.basename(sys.argv[0]), os.getpid())
-    run_command("g.region", save = name)
+    run_command("g.region", save = name, overwrite = True)
     os.environ['WIND_OVERRIDE'] = name
     atexit.register(del_temp_region)
 



More information about the grass-commit mailing list