SofaPython3
SofaPython3 copied to clipboard
Add cleanup to core and ensure that the cleanup happens in runSofa
The "Release" method was never called when running python scene through runSofa, leading to non-correct cleanup of the python interpreter.
This PR adds the cleanup callback and ensure that the data cache is deleted before the interpreter (in Sofa.Core)