[GRASSGUI] python scripting support?

Michael Barton michael.barton at asu.edu
Mon Apr 9 15:32:02 EDT 2007


Thanks.

I'll play around and see if it works.

Michael


On 4/9/07 8:10 AM, "Glynn Clements" <glynn at gclements.plus.com> wrote:

> 
> Michael Barton wrote:
> 
>> Any idea what would be the python equivalent of the bash lines...
>> 
>> if [ "$1" != "@ARGS_PARSED@" ] ; then
>>   exec g.parser "$0" "$@"
>> fi
> 
> AFAICT:
> 
> if ( sys.argv[1] != "@ARGS_PARSED@" ):
> os.execv("g.parser", [sys.argv[0]] + sys.argv)

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton 




More information about the grass-gui mailing list