File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed
python/plugins/processing/algs Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ def grassPath():
86
86
if not isWindows () and not isMac ():
87
87
return ''
88
88
89
- folder = ProcessingConfig .getSetting (GrassUtils .GRASS_FOLDER )
89
+ folder = ProcessingConfig .getSetting (GrassUtils .GRASS_FOLDER ) or ''
90
90
if not os .path .exists (folder ):
91
91
folder = None
92
92
if folder is None :
@@ -107,7 +107,7 @@ def grassPath():
107
107
108
108
@staticmethod
109
109
def grassWinShell ():
110
- folder = ProcessingConfig .getSetting (GrassUtils .GRASS_WIN_SHELL )
110
+ folder = ProcessingConfig .getSetting (GrassUtils .GRASS_WIN_SHELL ) or ''
111
111
if not os .path .exists (folder ):
112
112
folder = None
113
113
if folder is None :
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def grassPath():
83
83
if not isWindows () and not isMac ():
84
84
return ''
85
85
86
- folder = ProcessingConfig .getSetting (Grass7Utils .GRASS_FOLDER )
86
+ folder = ProcessingConfig .getSetting (Grass7Utils .GRASS_FOLDER ) or ''
87
87
if not os .path .exists (folder ):
88
88
folder = None
89
89
if folder is None :
Original file line number Diff line number Diff line change @@ -101,24 +101,15 @@ def findOtbLibPath():
101
101
102
102
103
103
def otbLibPath ():
104
- folder = findOtbLibPath ()
105
- if folder is None :
106
- folder = ProcessingConfig .getSetting (OTB_LIB_FOLDER )
107
- return folder
104
+ return ProcessingConfig .getSetting (OTB_LIB_FOLDER ) or ''
108
105
109
106
110
107
def otbSRTMPath ():
111
- folder = ProcessingConfig .getSetting (OTB_SRTM_FOLDER )
112
- if folder is None :
113
- folder = ""
114
- return folder
108
+ return ProcessingConfig .getSetting (OTB_SRTM_FOLDER ) or ''
115
109
116
110
117
111
def otbGeoidPath ():
118
- filepath = ProcessingConfig .getSetting (OTB_GEOID_FILE )
119
- if filepath is None :
120
- filepath = ""
121
- return filepath
112
+ return ProcessingConfig .getSetting (OTB_GEOID_FILE ) or ''
122
113
123
114
124
115
def otbDescriptionPath ():
You can’t perform that action at this time.
0 commit comments