Переглянути джерело

Keys in `options` dictionary cannot be shortened. Patch provided by Stepan Turek.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53329 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 роки тому
батько
коміт
082de2f39a

+ 1 - 1
scripts/m.proj/m.proj.py

@@ -112,7 +112,7 @@ class TrThread(threading.Thread):
 def main():
     input = options['input']
     output = options['output']
-    fs = options['sep']
+    fs = options['separator']
     proj_in = options['proj_input']
     proj_out = options['proj_output']
     ll_in = flags['i']

+ 1 - 1
scripts/r.out.xyz/r.out.xyz.py

@@ -37,7 +37,7 @@ def main():
     # if no output filename, output to stdout
     output = options['output']
 
-    ret = grass.run_command("r.stats", flags = "1gn", input = options['input'], sep = options['sep'], output = output)
+    ret = grass.run_command("r.stats", flags = "1gn", input = options['input'], sep = options['separator'], output = output)
     sys.exit(ret)
 
 if __name__ == "__main__":

+ 1 - 1
scripts/r.tileset/r.tileset.py

@@ -372,7 +372,7 @@ def main():
                           (tile_bbox['w'], tile_bbox['s'], tile_bbox['e'], tile_bbox['n'],
                            tile_size_overlap[0], tile_size_overlap[1])
                 else:
-                    fs = options['sep']
+                    fs = options['separator']
                     print "%s%s%s%s%s%s%s%s%s%s%s" % \
                           (tile_bbox['w'], fs, tile_bbox['s'], fs, tile_bbox['e'], fs, tile_bbox['n'], fs,
                            tile_size_overlap[0], fs, tile_size_overlap[1])

+ 1 - 1
scripts/r3.in.xyz/r3.in.xyz.py

@@ -190,7 +190,7 @@ def main():
     output = options['output']
     method = options['method']
     dtype = options['type']
-    fs = options['sep']
+    fs = options['separator']
     x = options['x']
     y = options['y']
     z = options['z']

+ 1 - 1
scripts/v.in.lines/v.in.lines.py

@@ -44,7 +44,7 @@ def cleanup():
 def main():
     global tmp
 
-    fs = options['sep']
+    fs = options['separator']
     threeD = flags['z']
 
     prog = 'v.in.lines'