mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-09 00:04:30 -05:00
add userDescriptionFolder() method
This commit is contained in:
parent
2c006b185d
commit
c0ca40aebb
@ -253,9 +253,15 @@ class Grass7Utils:
|
|||||||
|
|
||||||
return folder or ''
|
return folder or ''
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def userDescriptionFolder():
|
||||||
|
folder = os.path.join(userFolder(), 'grassaddons', 'description')
|
||||||
|
mkdir(folder)
|
||||||
|
return os.path.abspath(folder)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def grassDescriptionFolders():
|
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
|
@staticmethod
|
||||||
def getWindowsCodePage():
|
def getWindowsCodePage():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user