[GRASS-dev] winGRASS: 'g.gui wxpython' fails when installed in "Program Files"

Glynn Clements glynn at gclements.plus.com
Mon Jan 18 22:13:50 EST 2010


Markus Neteler wrote:

> >> Would this be hell?
> >>
> >> #ifndef __MINGW32__
> >>     sprintf(lister, "%s/etc/lister/%s", G_gisbase(),
> >> #else
> >>     sprintf(lister, "%s/etc/lister.exe/%s", G_gisbase(),
> >> #endif
> >
> > The .exe goes on the end:
> >
> > #ifndef __MINGW32__
> >    sprintf(lister, "%s/etc/lister/%s", G_gisbase(),
> > #else
> >    sprintf(lister, "%s/etc/lister/%s.exe", G_gisbase(),
> > #endif
> >
> > Except ... this requires that the lister is an executable; there's no
> > fundamental reason why it couldn't be a script, other than the
> > access() check (well: that, and the fact that G_spawn() etc don't use
> > the shell currently).
> 
> Is that a +/-0 or a -1 for the second patch?

I'd say +1. Having it only work with a .exe is preferable to it not
working at all.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list