Skip to content

Commit

Permalink
[processing] don't throw error if GRASS not found on Mac (fix #17443)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Nov 23, 2017
1 parent 6063c83 commit 03e4756
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/plugins/processing/algs/grass7/Grass7Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,10 @@ def grassHelpPath():

if helpPath is None:
if isWindows() or isMac():
localPath = os.path.join(Grass7Utils.path, 'docs/html')
if os.path.exists(localPath):
helpPath = os.path.abspath(localPath)
if Grass7Utils.path is not None:
localPath = os.path.join(Grass7Utils.path, 'docs/html')
if os.path.exists(localPath):
helpPath = os.path.abspath(localPath)
else:
searchPaths = ['/usr/share/doc/grass-doc/html',
'/opt/grass/docs/html',
Expand Down

0 comments on commit 03e4756

Please sign in to comment.