Skip to content

Commit

Permalink
sextante: fix NameError (undefined var) executing GRASS commands
Browse files Browse the repository at this point in the history
  • Loading branch information
brushtyler committed Nov 2, 2012
1 parent 00b1958 commit fedb8ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/sextante/grass/GrassAlgorithm.py
Expand Up @@ -279,12 +279,14 @@ def processAlgorithm(self, progress):
# add output file to exported layers, to indicate that they are present in GRASS
self.exportedLayers[filename]= out.name
if isinstance(out, OutputVector):
filename = out.value
command = "v.out.ogr -ce input=" + out.name
command += " dsn=\"" + os.path.dirname(out.value) + "\""
command += " format=ESRI_Shapefile"
command += " olayer=" + os.path.basename(out.value)[:-4]
command += " type=auto"
commands.append(command)
# add output file to exported layers
self.exportedLayers[filename]= out.name

#4 Run GRASS
Expand Down

0 comments on commit fedb8ac

Please sign in to comment.