We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8804724 commit 9b8441eCopy full SHA for 9b8441e
python/plugins/processing/algs/grass7/Grass7Utils.py
@@ -140,14 +140,12 @@ def searchFolder(folder):
140
Inline function to search for grass binaries into a folder
141
with os.walk
142
"""
143
- command = None
144
if os.path.exists(folder):
145
for root, dirs, files in os.walk(folder):
146
for cmd in cmdList:
147
if cmd in files:
148
- command = os.path.join(root, cmd)
149
- break
150
- return command
+ return os.path.join(root, cmd)
+ return None
151
152
if Grass7Utils.command:
153
return Grass7Utils.command
0 commit comments