Changes between Version 2 and Version 3 of Submitting/Python
- Timestamp:
- 06/11/14 20:35:54 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Submitting/Python
v2 v3 129 129 #!python 130 130 # test for input raster map 131 result = grass.find_file(name = map_name, element = 'cell', quiet =True)131 result = grass.find_file(name=map_name, element='cell', quiet=True) 132 132 if not result['file'] 133 133 grass.fatal("Raster map <%s> not found" % map_name) 134 134 135 135 # test for input vector map 136 result = grass.find_file(name = map_name, element = 'vector', quiet =True)136 result = grass.find_file(name=map_name, element='vector', quiet=True) 137 137 if not result['file'] 138 138 grass.fatal("Vector map <%s> not found" % map_name)