mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[processing] fixed autodetection of grass folder
Fix provided by Stefan Blumentrath
This commit is contained in:
parent
beaa45e557
commit
99b9a495b8
@ -88,10 +88,10 @@ class Grass7Utils:
|
||||
if folder is None:
|
||||
if isWindows():
|
||||
testfolder = os.path.dirname(unicode(QgsApplication.prefixPath()))
|
||||
testfolder = os.path.join(testfolder, 'grass7')
|
||||
testfolder = os.path.join(testfolder, 'grass')
|
||||
if os.path.isdir(testfolder):
|
||||
for subfolder in os.listdir(testfolder):
|
||||
if subfolder.startswith('grass7'):
|
||||
if subfolder.startswith('grass-7'):
|
||||
folder = os.path.join(testfolder, subfolder)
|
||||
break
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user