Hello Glynn Just one question: I reading http://grass.osgeo.org/programming6/pythonlib.html the "*GRASS-oriented interface to subprocess module" and I'm wondering wich one of this functions shall i use to run an external bin in Windows? run_command?* *Thanks * * * 2011/7/1 Glynn Clements <[email protected]>
> > katrin eggert wrote: > > > I want to integrate in a Python script a call to an external binary (a > small > > fucntion that I have done). What can i use to do this? > > The standard Python functions for spawning child processes are > subprocess.Popen() and subprocess.call() > > http://docs.python.org/library/subprocess.html > > The grass.script module has its own versions of these functions, which > set shell=True on Windows so that scripts work, but that doesn't > matter if you're running a binary executable. It also has several > functions which are intended specifically for running GRASS modules > (anything that uses the GRASS command-line parser). > > -- > Glynn Clements <[email protected]> >
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
