Skip to content
Permalink
Browse files

[processing][grass] Fix incorrect path calculation for grass binary

(cherry-picked from 8e08bda)
  • Loading branch information
nyalldawson committed Apr 2, 2018
1 parent 8804724 commit 9b8441ea00290c7c53aaa78a1e26f5c08c78db34
Showing with 2 additions and 4 deletions.
  1. +2 −4 python/plugins/processing/algs/grass7/Grass7Utils.py
@@ -140,14 +140,12 @@ def searchFolder(folder):
Inline function to search for grass binaries into a folder
with os.walk
"""
command = None
if os.path.exists(folder):
for root, dirs, files in os.walk(folder):
for cmd in cmdList:
if cmd in files:
command = os.path.join(root, cmd)
break
return command
return os.path.join(root, cmd)
return None

if Grass7Utils.command:
return Grass7Utils.command

0 comments on commit 9b8441e

Please sign in to comment.
You can’t perform that action at this time.