[GRASS-SVN] r35993 - grass/trunk/lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Feb 20 14:46:37 EST 2009
Author: martinl
Date: 2009-02-20 14:46:37 -0500 (Fri, 20 Feb 2009)
New Revision: 35993
Modified:
grass/trunk/lib/python/grass.py
Log:
use ';' as separator (to avoid problems on MS Windows)
(merge from relbr64, r35992)
Modified: grass/trunk/lib/python/grass.py
===================================================================
--- grass/trunk/lib/python/grass.py 2009-02-20 19:44:03 UTC (rev 35992)
+++ grass/trunk/lib/python/grass.py 2009-02-20 19:46:37 UTC (rev 35993)
@@ -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