[GRASS-SVN] r49211 - grass/trunk/scripts/v.what.vect
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 14 02:50:09 EST 2011
Author: martinl
Date: 2011-11-13 23:50:08 -0800 (Sun, 13 Nov 2011)
New Revision: 49211
Modified:
grass/trunk/scripts/v.what.vect/v.what.vect.py
Log:
v.what.vect: main() returns exit code of the command
Modified: grass/trunk/scripts/v.what.vect/v.what.vect.py
===================================================================
--- grass/trunk/scripts/v.what.vect/v.what.vect.py 2011-11-14 07:48:21 UTC (rev 49210)
+++ grass/trunk/scripts/v.what.vect/v.what.vect.py 2011-11-14 07:50:08 UTC (rev 49211)
@@ -54,16 +54,16 @@
from grass.script import core as grass
def main():
- grass.run_command("v.distance",
- _from = options['map'],
- to = options['qmap'],
- column = options['column'],
- to_column = options['qcolumn'],
- upload = "to_attr",
- dmax = options['dmax'],
- from_layer = options['layer'],
- to_layer = options['qlayer'])
+ return grass.run_command("v.distance",
+ _from = options['map'],
+ to = options['qmap'],
+ column = options['column'],
+ to_column = options['qcolumn'],
+ upload = "to_attr",
+ dmax = options['dmax'],
+ from_layer = options['layer'],
+ to_layer = options['qlayer'])
if __name__ == "__main__":
options, flags = grass.parser()
- main()
+ sys.exit(main())
More information about the grass-commit
mailing list