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
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
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
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).
>
#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: |
#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:
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:
>
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
#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