mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
23 lines
599 B
Python
23 lines
599 B
Python
import os
|
|
from sextante.core.SextanteUtils import SextanteUtils
|
|
from sextante.core.SextanteUtils import mkdir
|
|
from sextante.core.SextanteConfig import SextanteConfig
|
|
|
|
class ScriptUtils:
|
|
|
|
SCRIPTS_FOLDER = "SCRIPTS_FOLDER"
|
|
ACTIVATE_SCRIPTS = "ACTIVATE_SCRIPTS"
|
|
|
|
@staticmethod
|
|
def scriptsFolder():
|
|
folder = SextanteConfig.getSetting(ScriptUtils.SCRIPTS_FOLDER)
|
|
if folder == None:
|
|
#folder = os.path.join(os.path.dirname(__file__), "scripts")
|
|
folder = SextanteUtils.userFolder() + os.sep + "scripts"
|
|
mkdir(folder)
|
|
|
|
return folder
|
|
|
|
|
|
|