add userDescriptionFolder() method

This commit is contained in:
AlisterH 2023-05-31 20:16:09 +12:00 committed by Nyall Dawson
parent 2c006b185d
commit c0ca40aebb

View File

@ -253,9 +253,15 @@ class Grass7Utils:
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():