[GRASS-SVN] r59392 - grass/trunk/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 27 02:47:26 PDT 2014
Author: martinl
Date: 2014-03-27 02:47:26 -0700 (Thu, 27 Mar 2014)
New Revision: 59392
Modified:
grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: use tempfile instead of grass.tempdir()
Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py 2014-03-27 09:00:26 UTC (rev 59391)
+++ grass/trunk/scripts/g.extension/g.extension.py 2014-03-27 09:47:26 UTC (rev 59392)
@@ -7,7 +7,7 @@
# Pythonized & upgraded for GRASS 7 by Martin Landa <landa.martin gmail.com>
# PURPOSE: Tool to download and install extensions from GRASS Addons SVN into
# local GRASS installation
-# COPYRIGHT: (C) 2009-2013 by Markus Neteler, and the GRASS Development Team
+# COPYRIGHT: (C) 2009-2014 by Markus Neteler, and the GRASS Development Team
#
# This program is free software under the GNU General
# Public License (>=v2). Read the file COPYING that
@@ -1077,7 +1077,7 @@
if __name__ == "__main__":
options, flags = grass.parser()
global TMPDIR
- TMPDIR = grass.tempdir()
+ TMPDIR = tempfile.mkdtemp()
atexit.register(cleanup)
version = grass.version()['version'].split('.')
sys.exit(main())
More information about the grass-commit
mailing list