Fix Inkscape cleanup at exit on Windows. - #19811
Conversation
|
I'm not actually 100% sure of what's happening (especially wrt. the precise timing where |
|
This SO answer is helpful. Specifically, when using atexit, "what happens if a class is garbage collected before exit"? It seems that we should be able to perform cleanup solely with But then again there's definitely a use for atexit as indicated by the comment: Using both seems unnecessary/redundant/prone to error as they are calling the same Of note too is this section from the docs: So it seems that the function that finalize calls shouldn't be |
|
To be clear I'm not claiming my solution is best, just that it works empirically... but if you have something better, please open a PR :-) |
…811-on-v3.4.x Backport PR #19811 on branch v3.4.x (Fix Inkscape cleanup at exit on Windows.)

PR Summary
Closes #19809, at least locally (@jungerm2 can you confirm it works for you?)
I'd rather not figure out how to mess with CI to get Inkscape on Windows as well...
PR Checklist
pytestpasses).flake8on changed files to check).flake8-docstringsand runflake8 --docstring-convention=all).doc/users/next_whats_new/(follow instructions in README.rst there).doc/api/next_api_changes/(follow instructions in README.rst there).