[GRASS-dev] Python scripts: trigger cleanup function at keyboard interrupt (CTRL-C)

2019-10-14 Thread Markus Neteler
Hi, in the GRASS GIS 6 shell scripts we used this code to clean up temp files upon CTRL-C signal: cleanup() { g.message -v "Cleaning up ..." cd "$MSET_DIR" rm -rf "$TMP_DIR" } trap ctrl-c so that we can clean up tmp trap 'cleanup' 2 3 15 If there anything similar we could add to

Re: [GRASS-dev] Python scripts: trigger cleanup function at keyboard interrupt (CTRL-C)

2019-10-14 Thread Anna Petrášová
This is used in many scripts and should work: https://grasswiki.osgeo.org/wiki/GRASS_Python_Scripting_Library#Sophisticated_cleanup_procedure On Mon, Oct 14, 2019 at 10:00 AM Markus Neteler wrote: > Hi, > > in the GRASS GIS 6 shell scripts we used this code to clean up temp > files upon CTRL-C

Re: [GRASS-dev] Python scripts: trigger cleanup function at keyboard interrupt (CTRL-C)

2019-10-14 Thread Moritz Lennert
On 14/10/19 16:44, Anna Petrášová wrote: This is used in many scripts and should work: https://grasswiki.osgeo.org/wiki/GRASS_Python_Scripting_Library#Sophisticated_cleanup_procedure Not sure this works on a Ctrl-C. ISTR it doesn't, but this would have to be verified. Moritz On Mon, Oct

Re: [GRASS-dev] Python scripts: trigger cleanup function at keyboard interrupt (CTRL-C)

2019-10-14 Thread Markus Neteler
On Mon, Oct 14, 2019 at 5:04 PM Moritz Lennert wrote: > > On 14/10/19 16:44, Anna Petrášová wrote: > > This is used in many scripts and should work: > > https://grasswiki.osgeo.org/wiki/GRASS_Python_Scripting_Library#Sophisticated_cleanup_procedure Thanks for the link (now I remember again). >

[GRASS-dev] [GRASS GIS] #3921: GUI fails to start if rc contains missing mapset

2019-10-14 Thread GRASS GIS
#3921: GUI fails to start if rc contains missing mapset +- Reporter: marisn | Owner: grass-dev@… Type: defect | Status: new Priority: normal | Milestone: Component: wxGUI |Version: svn-trunk Keywords: |

[GRASS-dev] [GRASS GIS] #3922: GRASS fails to start with C or POSIX locale

2019-10-14 Thread GRASS GIS
#3922: GRASS fails to start with C or POSIX locale +- Reporter: marisn | Owner: grass-dev@… Type: defect | Status: new Priority: normal | Milestone: Component: Python |Version: svn-trunk Keywords: |CPU:

Re: [GRASS-dev] GRASS 7.8.1 ?

2019-10-14 Thread Anna Petrášová
That's good news! Thank you. I would like to have some time to fix at least some of the windows issues that popped up with Python3, I need to review what needs to be done, I lost track of it. But I agree we should release fairly soon. On Mon, Oct 14, 2019 at 2:51 PM Helmut Kudrnovsky wrote: >

[GRASS-dev] GRASS 7.8.1 ?

2019-10-14 Thread Helmut Kudrnovsky
hi, as winGRASS is on the way to come back, see [1]. locally here is already winGRASS 7.8.0 running for testing. there are already a few reported issues for python3 and git related to winGRASS etc, e.g. https://trac.osgeo.org/grass/ticket/3882 https://trac.osgeo.org/grass/ticket/3871

Re: [GRASS-dev] [GRASS GIS] #3922: GRASS fails to start with C or POSIX locale

2019-10-14 Thread GRASS GIS
#3922: GRASS fails to start with C or POSIX locale --+- Reporter: marisn | Owner: grass-dev@… Type: defect | Status: closed Priority: normal | Milestone: Component: Python |Version: svn-trunk