mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-05 00:04:40 -05:00
add userDescriptionFolder() method
This commit is contained in:
parent
2c006b185d
commit
c0ca40aebb
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user