[GRASSGUI] python scripting support?

Jachym Cepicky jachym.cepicky at gmail.com
Tue Apr 10 04:40:56 EDT 2007


g.manual g.parser ;-)

j

2007/4/9, Michael Barton <michael.barton at asu.edu>:
> 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
>
> _______________________________________________
> grassgui mailing list
> grassgui at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassgui
>


-- 
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub




More information about the grass-gui mailing list