Skip to content
Permalink
Browse files
[processing][grass] Fix incorrect path calculation for grass binary
  • Loading branch information
nyalldawson committed Mar 26, 2018
1 parent bec878f commit 8e08bda
Showing 1 changed file with 2 additions and 4 deletions.
@@ -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 8e08bda

Please sign in to comment.