Skip to content
Browse files
[processing][grass] Fix incorrect path calculation for grass binary
  • Loading branch information
nyalldawson committed Mar 26, 2018
1 parent bec878f commit 8e08bda46c2ec2692f5c07347cb1b947d68bb63f
Showing with 2 additions and 4 deletions.
  1. +2 −4 python/plugins/processing/algs/grass7/
@@ -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)
return command
return os.path.join(root, cmd)
return None

if Grass7Utils.command:
return Grass7Utils.command

0 comments on commit 8e08bda

Please sign in to comment.