Just saying that you don't want to rely on having a valid nuke module, Root_Node, DDImage infrastructure, etc..
If it's a gui-only thing you could connect a slot to the aboutToQuit() signal http://doc.qt.io/qt-4.8/qcoreapplication.html#aboutToQuit On 24 April 2015 at 14:19, Fredrik Averpil <[email protected]> wrote: > 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 <[email protected]> > 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 <[email protected]> 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 >>>> [email protected], http://forums.thefoundry.co.uk/ >>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python >>>> >>>> >>> -- >>> ben dickson >>> 2D TD | [email protected] >>> rising sun pictures | www.rsp.com.au >>> _______________________________________________ >>> Nuke-python mailing list >>> [email protected], 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: [email protected] >> _______________________________________________ >> Nuke-python mailing list >> [email protected], http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python >> > > _______________________________________________ > Nuke-python mailing list > [email protected], 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: [email protected]
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
