Selaa lähdekoodia

use ';' as separator (to avoid problems on MS Windows)
(merge from relbr64, https://trac.osgeo.org/grass/changeset/35992)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35993 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 vuotta sitten
vanhempi
commit
fe92e8d689
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      lib/python/grass.py

+ 3 - 2
lib/python/grass.py

@@ -449,10 +449,11 @@ def vector_db(map, **args):
 
     @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