[GRASS-SVN] r35994 - grass/branches/develbranch_6/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 20 14:48:20 EST 2009


Author: martinl
Date: 2009-02-20 14:48:20 -0500 (Fri, 20 Feb 2009)
New Revision: 35994

Modified:
   grass/branches/develbranch_6/lib/python/grass.py
Log:
use ';' as separator (to avoid problems on MS Windows)
   (merge from relbr64, r35992)


Modified: grass/branches/develbranch_6/lib/python/grass.py
===================================================================
--- grass/branches/develbranch_6/lib/python/grass.py	2009-02-20 19:46:37 UTC (rev 35993)
+++ grass/branches/develbranch_6/lib/python/grass.py	2009-02-20 19:48:20 UTC (rev 35994)
@@ -449,10 +449,11 @@
 
     @return dictionary { layer : { 'layer', 'table, 'database', 'driver', 'key' }
     """
-    s = read_command('v.db.connect', flags = 'g', map = map, fs = '|', **args)
+    s = read_command('v.db.connect', flags = 'g', map = map, fs = ';', **args)
     result = {}
+    
     for l in s.splitlines():
-	f = l.split('|')
+	f = l.split(';')
 	if len(f) != 5:
 	    continue
         



More information about the grass-commit mailing list