<div dir="ltr"><div>Hello !<br></div><div><br></div><div>I would like to delete temporary files during the process of a python script. I have look at g.tempfile but it seems I don't know how to use it in a python script.</div><div>I have tried :</div><div>PROCESS_ID = os.getpid()</div><div>...<br></div><div>TEMP1 = grass.read_command ('g.tempfile',<br>    pid = PROCESS_ID)</div><div><br></div><div>But this changes nothing, after about 67200 calculations of r.viewshed no more temporary file can be created and the script stopped.<br></div><div><br></div><div>It seems to me that i miss something... If anyone knows how to solve that ?</div><div><br></div><div>Thanks for your help</div><div><br></div><div>yann<br></div><div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><br style="color:rgb(153,0,0)"><font size="1"><span style="color:rgb(102,0,0)">Yann Le Jeune</span></font><br><font size="1">Web : <a href="http://www.paleosystem.fr" target="_blank">http://www.paleosystem.fr</a></font> <font size="1"><a href="https://ello.co/yannz" target="_blank">https://ello.co/yannz</a></font><br><br></div></div></div></div></div></div></div>