Re: atexit handlers - getting the return code

2011-09-27 Thread Mike Hull
On Sep 27, 4:59 pm, Robert Kern wrote: > On 9/27/11 9:37 AM, Mike Hull wrote: > > > > > > > > > > > Hi Giampaolo, > > Sorry, I didn't explain very clearly. > > I have a python file, 'simulation_logger.py', (given below)

Re: atexit handlers - getting the return code

2011-09-27 Thread Mike Hull
Hi Giampaolo, Sorry, I didn't explain very clearly. I have a python file, 'simulation_logger.py', (given below). Then, in my scripts, I add the following lines to the top, #simulation1.py: ### from simulation_logger import SimulationDecorator SimulationDecorator.Init() # Rest o

atexit handlers - getting the return code

2011-09-27 Thread Mike Hull
Hi, I work in neuroscience modelling and use python for lots of my work. One problem I have is management of scripts and results. To that end, I have written code that make its easier to keep track of scripts, to see which ones have run, or need to be rerun, to see output errors and generally organ