[GRASS-SVN] r63895 - grass/trunk/scripts/v.db.dropcolumn

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 1 05:40:58 PST 2015


Author: martinl
Date: 2015-01-01 05:40:58 -0800 (Thu, 01 Jan 2015)
New Revision: 63895

Modified:
   grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py
Log:
v.db.dropcolumn: fix find_file() call

Modified: grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py
===================================================================
--- grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py	2015-01-01 13:33:58 UTC (rev 63894)
+++ grass/trunk/scripts/v.db.dropcolumn/v.db.dropcolumn.py	2015-01-01 13:40:58 UTC (rev 63895)
@@ -52,7 +52,7 @@
     mapset = grass.gisenv()['MAPSET']
     
     # does map exist in CURRENT mapset?
-    if not grass.find_file(map, element = 'vector', mapset = mapset):
+    if not grass.find_file(map, element = 'vector', mapset = mapset)['file']:
         grass.fatal(_("Vector map <%s> not found in current mapset") % map)
     
     f = grass.vector_layer_db(map, layer)



More information about the grass-commit mailing list