> --- meaning, when to know to remove the lock file? That's a good question. Softimage does this transparently, but I'm not sure how. If I had to take a guess, I'd say that the Softimage process has an active file-handle on the LOCK file, and as soon as the process dies so does the handle, leaving it to the next process, either by the same user or not, to clean up the, now invalid, lock.
There's some fascinating information on the topic in the Wiki http://en.wikipedia.org/wiki/File_locking On 4 August 2014 12:00, Chris Gardner <[email protected]> wrote: > Hey Fredrik, > > I am also watching events on newScene and mayaExit. Maya crashing is > the tricky one. > > However, i'm not stopping the user from doing anything if there's a > lock on the scene. It's for information purposes only. It's not my job > to prevent people from doing things if it won't kill 'em :) > > cheers, > chrisg > > > On 4 August 2014 20:53, Fredrik Averpil <[email protected]> wrote: > > Forgive me for perhaps missing a step here... but how do you detect the > fact > > that you close the scene, maya exists or maya crashes? > > --- meaning, when to know to remove the lock file? > > > > > > Fredrik > > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAPoKtNdxPaHsoE%3DSewQvS0TeujyY7GNWcuUo3GZybUqCXwDfeA%40mail.gmail.com > . > For more options, visit https://groups.google.com/d/optout. > -- *Marcus Ottosson* [email protected] -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOC%2Bkoat6vDYW39FuXaMvk5X%3DmZSUJD90wq3yRdhJcJ2%3DA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
