Skip to content

Commit 2f305c5

Browse files
volayajef-n
authored andcommittedFeb 25, 2019
[processing] fixed finding grass folder
1 parent 884d9f6 commit 2f305c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/algs/grass7/Grass7Utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def grassPath():
221221
if "GISBASE" in os.environ:
222222
folder = os.environ["GISBASE"]
223223
else:
224-
testfolder = os.path.join(str(QgsApplication.prefixPath()), 'grass')
224+
testfolder = os.path.join(os.path.dirname(QgsApplication.prefixPath()), 'grass')
225225
if os.path.isdir(testfolder):
226226
grassfolders = sorted([f for f in os.listdir(testfolder) if f.startswith("grass-7.") and os.path.isdir(os.path.join(testfolder, f))], reverse=True, key=lambda x: [int(v) for v in x[len("grass-"):].split('.') if v != 'svn'])
227227
if grassfolders:

0 commit comments

Comments
 (0)
Please sign in to comment.