[CentOS] Python Script Issue

JohnS jses27 at gmail.com
Sat Feb 27 21:56:29 UTC 2010


On Sat, 2010-02-27 at 20:46 +0000, Joseph L. Casale wrote:
> Hey Guys,
> I am trying to get a python script running but I get the following error:
> 
>     atexit.register(atexit_handler)
> NameError: global name 'atexit' is not defined
> 
> A Google search doesn't really help me, except confirm that I don't know
> anything about python:)
> 
> Anyone got any ideas?
> Thanks,
> jlc
---
> This is a tad newer but should give you a clue on using "atexit".
> Somewhere in the script there is a error.  Prolly a function in it
> somewhere.  Look for what the script is cleaning up or attempting to.

Sorry about that...

http://www.python.org/doc/2.5.2/lib/module-atexit.html

Which I forgot to post but Benjamin already linked it to you, opps.

John





More information about the CentOS mailing list