瀏覽代碼

pythonlib/scripts: can concatenate only list and list

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56869 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 12 年之前
父節點
當前提交
8ff6da3615
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/python/script/core.py

+ 1 - 1
lib/python/script/core.py

@@ -1258,7 +1258,7 @@ def find_program(pgm, *args):
     """
     nuldev = file(os.devnull, 'w+')
     try:
-        call([pgm] + args, stdin = nuldev, stdout = nuldev, stderr = nuldev)
+        call([pgm] + list(args), stdin = nuldev, stdout = nuldev, stderr = nuldev)
         found = True
     except:
         found = False