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

Markus Neteler neteler at osgeo.org
Sun Mar 17 15:48:03 PDT 2013

On Sun, Mar 17, 2013 at 12:23 AM, Glynn Clements
<glynn at gclements.plus.com> wrote:
> 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'\\'))
>             else:
>                 return shlex.split(s)

I have tested attached patch (which I hope is the same as the suggested change),
it lead to a complete GUI error. I tried to catch it with a screenshot
but was to
slow. I can try harder if needed.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: utils.diff
Type: application/octet-stream
Size: 626 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130317/b733cdce/attachment.obj>

More information about the grass-dev mailing list