[GRASS-dev] fixes for Windows

Glynn Clements glynn at gclements.plus.com
Wed Dec 16 19:36:49 EST 2009


Martin Landa wrote:

> > 5. The definition of PACKAGE needs the backslashes, i.e.:
> >
> >        macros = [('PACKAGE', '\\"grasslibs\\"')]
> >
> > (but this might break other platforms).
> 
> Then I am getting (GNU/Linux)
> 
> <command-line>: warning: missing terminating " character

I thought that something like that might happen. If the existing code
is correct for Linux, a changed version probably wouldn't be.

> Could this be avoided?

	if sys.platform == "win32":
	    package = '\\"grasslibs\\"'
	else:
	    package = '"grasslibs"'
	macros = [('PACKAGE', package)]

?

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


More information about the grass-dev mailing list