<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Sat, Nov 24, 2018 at 9:58 PM Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com">wenzeslaus@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr">On Sat, Nov 24, 2018 at 5:54 AM Markus Metz <<a href="mailto:markus.metz.giswork@gmail.com" target="_blank">markus.metz.giswork@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br><br>On Thu, Nov 22, 2018 at 11:33 PM Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>> wrote:<br><br>> That's all correct. There would have to be more to make it the same procedure as in grass.py, but eventually we need to do that.<br>><br><div>> What I meant to add it to grass.script.setup module where we should eventually put all the functions needed to setup a proper GRASS session (or in some other module, but setup seems to be something good enough for now and moving things around while keeping the API is easy in Python).</div><div><br></div><div>ok, the db cleanup is now (r73704) a function in grass.script.setup</div></div></blockquote><div><br></div><div></div><div>Great! Thanks. I tried to clean grass.py as much as possible, so I hope it's possible to make changes there.<br></div></div></div></blockquote><div><br></div><div>Unfortunately, just running: <br></div><div><br></div><div>$ grass77 --tmp-location XY --exec g.region -p<br></div><div>...<br>Execution of <g.region -p> finished.<br>Traceback (most recent call last):<br>  File "./bin.x86_64-pc-linux-gnu/grass77", line 2260, in <module><br>    main()<br>  File "./bin.x86_64-pc-linux-gnu/grass77", line 2208, in main<br>    clean_all(params.tmp_location)<br>TypeError: clean_all() takes no arguments (1 given)</div><div><div><br></div><div>$ svnversion<br></div><div>73707M</div></div></div></div></div></div></div></div>