[GRASS-dev] Re: [GRASS-user] Error when importing data in Windows
with Python Script
Martin Landa
landa.martin at gmail.com
Sat Oct 30 12:30:30 EDT 2010
Hi,.
2010/10/18 Glynn Clements <glynn at gclements.plus.com>:
> import shlex
>
> def split(s):
> return shlex.split(s, posix = (sys.platform != "win32"))
we need to find less Python specific way. The 'posix' parameter has
been added in Python 2.6 [1]. OSGeo4W uses Python 2.5, so it will not
work.
Martin
[1] http://docs.python.org/library/shlex.html
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
More information about the grass-dev
mailing list