Skip to content

Commit

Permalink
add userDescriptionFolder() method
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisterH authored and nyalldawson committed Jul 6, 2023
1 parent 2c006b1 commit c0ca40a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/plugins/grassprovider/Grass7Utils.py
Expand Up @@ -253,9 +253,15 @@ def grassPath():

return folder or ''

@staticmethod
def userDescriptionFolder():
folder = os.path.join(userFolder(), 'grassaddons', 'description')
mkdir(folder)
return os.path.abspath(folder)

@staticmethod
def grassDescriptionFolders():
return [os.path.join(userFolder(), 'grassaddons', 'description'), os.path.join(os.path.dirname(__file__), 'description')]
return [Grass7Utils.userDescriptionFolder(), os.path.join(os.path.dirname(__file__), 'description')]

@staticmethod
def getWindowsCodePage():
Expand Down

0 comments on commit c0ca40a

Please sign in to comment.