8
8
from sextante .grass .GrassAlgorithm import GrassAlgorithm
9
9
from sextante .core .SextanteUtils import SextanteUtils
10
10
from sextante .grass .DefineGrassRegionAction import DefineGrassRegionAction
11
- from sextante .grass .nviz import nviz
12
11
13
12
class GrassAlgorithmProvider (AlgorithmProvider ):
14
13
@@ -22,6 +21,8 @@ def initializeSettings(self):
22
21
if SextanteUtils .isWindows ():
23
22
SextanteConfig .addSetting (Setting (self .getDescription (), GrassUtils .GRASS_FOLDER , "GRASS folder" , GrassUtils .grassPath ()))
24
23
SextanteConfig .addSetting (Setting (self .getDescription (), GrassUtils .GRASS_WIN_SHELL , "Msys folder" , GrassUtils .grassWinShell ()))
24
+ SextanteConfig .addSetting (Setting (self .getDescription (), GrassUtils .GRASS_LOG_COMMANDS , "Log execution commands" , False ))
25
+ SextanteConfig .addSetting (Setting (self .getDescription (), GrassUtils .GRASS_LOG_CONSOLE , "Log console output" , False ))
25
26
SextanteConfig .addSetting (Setting (self .getDescription (), GrassUtils .GRASS_AUTO_REGION , "Use min covering region" , True ))
26
27
SextanteConfig .addSetting (Setting (self .getDescription (), GrassUtils .GRASS_LATLON , "Coordinates are lat/lon" , False ))
27
28
SextanteConfig .addSetting (Setting (self .getDescription (), GrassUtils .GRASS_REGION_XMIN , "GRASS Region min x" , 0 ))
@@ -44,6 +45,8 @@ def unload(self):
44
45
SextanteConfig .removeSetting (GrassUtils .GRASS_REGION_YMAX )
45
46
SextanteConfig .removeSetting (GrassUtils .GRASS_REGION_CELLSIZE )
46
47
SextanteConfig .removeSetting (GrassUtils .GRASS_HELP_FOLDER )
48
+ SextanteConfig .removeSetting (GrassUtils .GRASS_LOG_COMMANDS )
49
+ SextanteConfig .removeSetting (GrassUtils .GRASS_LOG_CONSOLE )
47
50
48
51
def createAlgsList (self ):
49
52
self .preloadedAlgs = []
0 commit comments