Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
create directories for scripts and models in user directory
  • Loading branch information
alexbruy committed Sep 14, 2012
1 parent e460dde commit ca668ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions python/plugins/sextante/modeler/ModelerUtils.py
@@ -1,4 +1,5 @@
import os
from sextante.core.SextanteUtils import SextanteUtils
from sextante.core.SextanteUtils import mkdir
from sextante.core.SextanteConfig import SextanteConfig

Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions python/plugins/sextante/script/ScriptUtils.py
@@ -1,4 +1,5 @@
import os
from sextante.core.SextanteUtils import SextanteUtils
from sextante.core.SextanteUtils import mkdir
from sextante.core.SextanteConfig import SextanteConfig

Expand All @@ -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
Expand Down

0 comments on commit ca668ae

Please sign in to comment.