Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-05-17 Thread Nikos Alexandris
Martin Landa: ... > >> > PS: Probably it would be reasonable to change configuration of ML > >> > (send replay to the list instead to 'from') to avoid this mistake. Markus Neteler: > >> I would strongly advise against that (see '90s archive for some damages > >> and OSGeo list archive too and oth

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-05-06 Thread Markus Neteler
On Wed, May 5, 2010 at 5:30 AM, Nikos Alexandris wrote: > On Thu, Apr 22, 2010 at 1:52 PM, Martin Landa wrote: > ... >> > PS: Probably it would be reasonable to change configuration of ML >> > (send replay to the list instead to 'from') to avoid this mistake. > > On Thursday 22 of April 2010 15:3

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-05-05 Thread Martin Landa
Hi, 2010/5/5 Nikos Alexandris : [...] > I just read about this past debate. So, it is always better to use the "Reply > to Mailing-List" button (KMail here)? > > Pohhh... I am really sorry if I caused any problem since I've always been > using the "Reply-to-All" for the list and the "Reply-to" f

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-05-04 Thread Nikos Alexandris
On Thu, Apr 22, 2010 at 1:52 PM, Martin Landa wrote: ... > > PS: Probably it would be reasonable to change configuration of ML > > (send replay to the list instead to 'from') to avoid this mistake. On Thursday 22 of April 2010 15:36:37 Markus Neteler wrote: > Hi Martin, > I would strongly advi

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Markus Neteler
On Thu, Apr 22, 2010 at 1:52 PM, Martin Landa wrote: ... > PS: Probably it would be reasonable to change configuration of ML > (send replay to the list instead to 'from') to avoid this mistake. Hi Martin, I would strongly advise against that (see '90s archive for some damages and OSGeo list arch

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Martin Landa
Hi, 2010/4/22 Martin Landa : >>> > would have to do this: >>> > grass.call(['whoami', 'input_file', 'output_file']) or >>> > grass.call(['whoami input output_file']) > > if the syntax is 'cmd input output' then > > grass.call(['cmd', 'input', 'output']) > > see > > http://docs.python.org/library/s

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Martin Landa
Hi, 2010/4/22 Kim Besson : >> > would have to do this: >> > grass.call(['whoami', 'input_file', 'output_file']) or >> > grass.call(['whoami input output_file']) if the syntax is 'cmd input output' then grass.call(['cmd', 'input', 'output']) see http://docs.python.org/library/subprocess.html#su

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Kim Besson
Here now at the ML for everyone :) But which one of the two options is correct? The first one or the second one? Or both are ok? (at least the second one is correct I suppose) 2010/4/22 Martin Landa > Hi, > > {please keep discussion on ML} > > 2010/4/22 Kim Besson : > > Bur for instance you sepa

[GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Martin Landa
Hi, {please keep discussion on ML} 2010/4/22 Kim Besson : > Bur for instance you separated two argument inside [ ]. This means that for > instance If I need to call a external function and inser input and output I > would have to do this: > grass.call(['whoami', 'input_file', 'output_file']) or >

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Martin Landa
Hi, 2010/4/22 Kim Besson : > From http://download.osgeo.org/grass/grass6_progman/core_8py_source.html I > see that besides the main argument there is **kwargs. What is this? all defined arguments from Popen http://download.osgeo.org/grass/grass6_progman/classpython_1_1core_1_1Popen.html Martin

Re: [GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Martin Landa
Hi, 2010/4/22 Kim Besson : > I'm developing a small GRASS Python script but I will need to call an > external executive. I already know where to put it (at $PATH) but i don't > know how to call it from Python GRASS Script. How can I do this? (as an > example it's helloWorld :) ) grass.call() e.g

[GRASS-user] Call an external function from GRASS-Pythons Scripts

2010-04-22 Thread Kim Besson
Hi I'm developing a small GRASS Python script but I will need to call an external executive. I already know where to put it (at $PATH) but i don't know how to call it from Python GRASS Script. How can I do this? (as an example it's helloWorld :) ) Thanks Best regards Kim _