Skip to content
Permalink
Browse files

create directories for scripts and models in user directory

  • Loading branch information
alexbruy committed Sep 14, 2012
1 parent e460dde commit ca668ae3a8dac66e05297c08599f9a3232d73f1d
@@ -1,4 +1,5 @@
import os
from sextante.core.SextanteUtils import SextanteUtils
from sextante.core.SextanteUtils import mkdir
from sextante.core.SextanteConfig import SextanteConfig

@@ -11,8 +12,8 @@ class ModelerUtils:
def modelsFolder():
folder = SextanteConfig.getSetting(ModelerUtils.MODELS_FOLDER)
if folder == None:
folder = os.path.join(os.path.dirname(__file__), "models")
#folder = SextanteUtils.userFolder() + os.sep + "models"
#folder = os.path.join(os.path.dirname(__file__), "models")
folder = SextanteUtils.userFolder() + os.sep + "models"
mkdir(folder)

return folder
@@ -1,4 +1,5 @@
import os
from sextante.core.SextanteUtils import SextanteUtils
from sextante.core.SextanteUtils import mkdir
from sextante.core.SextanteConfig import SextanteConfig

@@ -11,8 +12,8 @@ class ScriptUtils:
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"
#folder = os.path.join(os.path.dirname(__file__), "scripts")
folder = SextanteUtils.userFolder() + os.sep + "scripts"
mkdir(folder)

return folder

0 comments on commit ca668ae

Please sign in to comment.
You can’t perform that action at this time.