[GRASS-SVN] r48086 - grass/trunk/scripts/db.out.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 3 06:28:21 EDT 2011


Author: neteler
Date: 2011-09-03 03:28:20 -0700 (Sat, 03 Sep 2011)
New Revision: 48086

Modified:
   grass/trunk/scripts/db.out.ogr/db.out.ogr.py
Log:
fixes; still broken

Modified: grass/trunk/scripts/db.out.ogr/db.out.ogr.py
===================================================================
--- grass/trunk/scripts/db.out.ogr/db.out.ogr.py	2011-09-03 08:49:57 UTC (rev 48085)
+++ grass/trunk/scripts/db.out.ogr/db.out.ogr.py	2011-09-03 10:28:20 UTC (rev 48086)
@@ -59,7 +59,7 @@
     input = options['input']
     format = options['format']
     dsn = options['dsn']
-    table = options['db_table']
+    table = options['table']
 
     if format.lower() == 'dbf':
 	format = "ESRI_Shapefile"
@@ -83,11 +83,11 @@
 	if dsn.endswith('.dbf'):
 	    outname = grass.basename(dsn, 'dbf')
 	    for ext in exts:
-		try_remove("%s.%s" % (outname, ext))
+		grass.try_remove("%s.%s" % (outname, ext))
 	    outname += '.dbf'
 	else:
 	    for ext in exts:
-		try_remove(os.path.join(dsn, "%s.%s" % (input, ext)))
+		grass.try_remove(os.path.join(dsn, "%s.%s" % (input, ext)))
 	    outname = os.path.join(dsn, input + ".dbf")
     elif format.lower() == 'csv':
 	outname = dsn + '.csv'



More information about the grass-commit mailing list