On Sun, Feb 8, 2009 at 14:48, jasonosipa <[email protected]> wrote: > > I want to throw a specific print statement up if a node failed to do > something. I'm finding it easy to just print a generic message, but > how would I use a node's own name to make it easier to know which > specific one is flaking? > > pseudo compute: > > try: > runSomeStuff() > except: > print <myOwnNodeName> + ' failed to run some stuff' > > > It's the <myOwnNodeName> that I'm curious about filling in.
If you're inside one of your node's methods, such as the compute(), then just call self.name(). -- -deane --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---
