File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
python/plugins/processing/algs/grass Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -88,20 +88,19 @@ def grassPath():
88
88
folder = ProcessingConfig .getSetting (GrassUtils .GRASS_FOLDER )
89
89
if folder is None :
90
90
if isWindows ():
91
- testfolder = os .path .dirname (str ( QgsApplication .prefixPath () ))
91
+ testfolder = os .path .dirname (QgsApplication .prefixPath ())
92
92
testfolder = os .path .join (testfolder , 'grass' )
93
93
if os .path .isdir (testfolder ):
94
94
for subfolder in os .listdir (testfolder ):
95
95
if subfolder .startswith ('grass' ):
96
96
folder = os .path .join (testfolder , subfolder )
97
- break
97
+ break
98
98
else :
99
- folder = os .path .join (str (QgsApplication .prefixPath ()), 'grass'
100
- )
99
+ folder = os .path .join (QgsApplication .prefixPath (), 'grass' )
101
100
if not os .path .isdir (folder ):
102
101
folder = '/Applications/GRASS-6.4.app/Contents/MacOS'
103
102
104
- return folder
103
+ return folder or ''
105
104
106
105
@staticmethod
107
106
def grassWinShell ():
You can’t perform that action at this time.
0 commit comments