[GRASS-dev] create location in windows

Glynn Clements glynn at gclements.plus.com
Thu Jul 30 07:19:05 PDT 2015

Markus Neteler wrote:

> >> IOError: [Errno 2] No such file or directory: u'D:\\GEOGRAPHY\\MODIS\\PERMANENT\
> >> \MYNAME'
> I wonder why there are double \\ while two lines above there are only
> the common single \.

The error message is using repr() (note the "u" prefix):

	> x = ur'a\b'
	> print x
	> print str(x)
	> print repr(x)

The backslashes are a red herring. The error indicates that either the
location or the PERMANENT mapset doesn't exist.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list