瀏覽代碼

thumbnails tool: minor sync to trunk

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@62780 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 10 年之前
父節點
當前提交
ae261ce263
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      tools/thumbnails.py

+ 4 - 2
tools/thumbnails.py

@@ -30,9 +30,11 @@ def cleanup():
     if tmp_img:
         grass.try_remove(tmp_img)
     if tmp_grad_rel:
-        grass.run_command('g.remove', type = 'rast', name = tmp_grad_rel, quiet = True, flags = 'f')
+        grass.run_command('g.remove', flags = 'f', type = 'rast',
+                          name = tmp_grad_rel, quiet = True)
     if tmp_grad_abs:
-        grass.run_command('g.remove', type = 'rast', name = tmp_grad_abs, quiet = True, flags = 'f')
+        grass.run_command('g.remove', flags = 'f', type = 'rast',
+                          name = tmp_grad_abs, quiet = True)
 
 # def rotate(src, dst):
 #     grass.call(["convert", "-rotate", "90", src, dst])