Luca Delucchi wrote:

> is there ant way to use run_command using as input command a string or
> a list of strings?

Why would you do that?

The grass.script.core.*_command functions are all thin layers on top
of Python's subprocess.Popen() interface. The only reason they exist
is to allow the programmer to use Python's keyword-argument syntax
rather than having to construct the argument list separately.

If you already have an argument list, just use subprocess.Popen() (or
grass.script.core.Popen(), which will hopefully work around some of
Windows' shortcomings) directly.

-- 
Glynn Clements <[email protected]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to