>Any idea how I can do that in such a way that it works on both Linux and
Windows?
in r.vif script I've changed the relevant lines:
<
# Get the raster values at sample points
fd, tmpcov = tempfile.mkstemp()
with open(tmpcov, "w") as text_file:
>Any idea how I can do that in such a way that it works on both Linux and
Windows?
or maybe something like:
>>> import os
>>> import tempfile
>>> fd, tmpcov = tempfile.mkstemp()
>>> with open(tmpcov, "w") as text_file:
... text_file.write("jshdfhg")
>>> text_file.close()
>>> os.close(fd)
>I see you commented out the line that removes the temporary file.
it was just for debugging to find the issue.
>Any idea how I can do that in such a way that it works on both Linux and
Windows?
https://docs.python.org/2/library/tempfile.html
that's maybe an alternative:
On Thu, Feb 1, 2018 at 12:04 PM, Helmut Kudrnovsky wrote:
> Dinarzarde Raheem wrote
> > I have been trying to run the addon r.vif using Grass for MS Windows
> > standalone v. 7.2.2 and v. 7.0.5 on three separate PCs (two have Windows
> 7
> > 32bit/64 bit, one runs Windows 10 Home