[GRASS-SVN] r46493 - grass/branches/develbranch_6/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 1 16:25:35 EDT 2011


Author: martinl
Date: 2011-06-01 13:25:35 -0700 (Wed, 01 Jun 2011)
New Revision: 46493

Modified:
   grass/branches/develbranch_6/lib/python/core.py
Log:
pythonlib: use_temp_region() overrides region silently
	   (merge r46491 from trunk)


Modified: grass/branches/develbranch_6/lib/python/core.py
===================================================================
--- grass/branches/develbranch_6/lib/python/core.py	2011-06-01 20:23:07 UTC (rev 46492)
+++ grass/branches/develbranch_6/lib/python/core.py	2011-06-01 20:25:35 UTC (rev 46493)
@@ -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