[GRASS-dev] formatting expressions for r.mapcalc in GRASS6.4.3

Glynn Clements glynn at gclements.plus.com
Sat Mar 16 16:23:14 PDT 2013

Markus Neteler wrote:

> On Fri, Mar 15, 2013 at 8:31 PM, Vaclav Petras <wenzeslaus at gmail.com> wrote:
> ...
> > I'm not following the discussion, so I don't know what to patch.
> Nor me... sorry.


Replace the split() function in core/utils.py with:

	def split(s):
	    """!Platform spefic shlex.split"""
	    if sys.platform == "win32":
	        return shlex.split(s.replace('\\', r'\\'))
	        return shlex.split(s)

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list