[GRASS-dev] Re: [GRASS-user] Error when importing data in Windows with Python Script

Glynn Clements glynn at gclements.plus.com
Tue Oct 19 21:05:21 EDT 2010


Luis Lisboa wrote:

> Ok at utils.py at line 21 I placed:
> import shlex
> and at the bottom of the file (linhe 424) I placed
> def split(s):
>     return shlex.split(s, posix = (sys.platform != "win32"))
> 
> And I still got this error. Did I did something wrong?

It isn't sufficient to add the function; you have to change (some of)
the existing shlex.split() calls to use utils.split() instead.

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


More information about the grass-dev mailing list