Hi Frank, I just ran a test here with atExit, and that worked fine. Are you saying I shouldn't rely on it? If so, any other ideas?
Regards, Fredrik On Thu, Apr 23, 2015 at 3:07 PM Frank Harrison <fr...@thefoundry.co.uk> wrote: > Just to let you know that by the time atExit callbacks are called Nuke > will have shut down most of its systems :) > > On 23 April 2015 at 09:05, Ben Dickson <ben.dick...@rsp.com.au> wrote: > >> You can run code when the python interpreter exits with the 'atexit' >> module: >> >> https://docs.python.org/2/library/atexit.html >> >> >> On 23/04/15 17:27, Fredrik Averpil wrote: >> >>> Does anyone know if it is possible to tell Nuke to execute a function >>> when it exits? >>> >>> Regards, >>> Fredrik >>> >>> >>> _______________________________________________ >>> Nuke-python mailing list >>> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ >>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python >>> >>> >> -- >> ben dickson >> 2D TD | ben.dick...@rsp.com.au >> rising sun pictures | www.rsp.com.au >> _______________________________________________ >> Nuke-python mailing list >> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python >> > > > > -- > Frank Harrison > Senior Nuke Software Engineer > The Foundry > Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906 > Web: www.thefoundry.co.uk > Email: frank.harri...@thefoundry.co.uk > _______________________________________________ > Nuke-python mailing list > Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python >
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python