[GRASS-SVN] r35992 - grass/branches/releasebranch_6_4/lib/python

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


Author: martinl
Date: 2009-02-20 14:44:03 -0500 (Fri, 20 Feb 2009)
New Revision: 35992

Modified:
   grass/branches/releasebranch_6_4/lib/python/grass.py
Log:
use ';' as separator (to avoid problems on MS Windows)


Modified: grass/branches/releasebranch_6_4/lib/python/grass.py
===================================================================
--- grass/branches/releasebranch_6_4/lib/python/grass.py	2009-02-20 19:34:03 UTC (rev 35991)
+++ grass/branches/releasebranch_6_4/lib/python/grass.py	2009-02-20 19:44:03 UTC (rev 35992)
@@ -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
         if '/' in f[0]:



More information about the grass-commit mailing list