Selaa lähdekoodia

g.extension: use tempfile instead of grass.tempdir()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59392 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 vuotta sitten
vanhempi
commit
da05868341
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      scripts/g.extension/g.extension.py

+ 2 - 2
scripts/g.extension/g.extension.py

@@ -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 @@ def main():
 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())