[GRASS-user] set mutliple flags in python script

Martin Landa landa.martin at gmail.com
Mon Apr 8 08:48:17 PDT 2013


2013/4/8 Johannes Radinger <johannesradinger at gmail.com>:
> I just wanted to know how to set mutliple flags when calling a module via
> python.
> Eg when I use grass.run_command("r.modulename", flags=a b)
> I tried:
> 1) flags=["a","b"]
> 2) flags="a,b"
> 3) flags="a b"
> So how can I call a module with multiple flags set in python?

flags = "ab"


More information about the grass-user mailing list