diff options
author | anatoly techtonik <techtonik@gmail.com> | 2012-12-19 19:41:31 (GMT) |
---|---|---|
committer | anatoly techtonik <techtonik@gmail.com> | 2012-12-19 19:41:31 (GMT) |
commit | e7b9e30c3f5e4b80c4506bb0eb2fe5847c2ac2f8 (patch) | |
tree | 5b53542690a04881550fcfe095358d5ccc12602f /bin | |
parent | 30da57759fda031e95552e6b90fefa4252f90cad (diff) | |
download | SCons-e7b9e30c3f5e4b80c4506bb0eb2fe5847c2ac2f8.zip SCons-e7b9e30c3f5e4b80c4506bb0eb2fe5847c2ac2f8.tar.gz SCons-e7b9e30c3f5e4b80c4506bb0eb2fe5847c2ac2f8.tar.bz2 |
Cleanup replacement of sys.exitfunc with atexit (Python 2+)
Diffstat (limited to 'bin')
-rw-r--r-- | bin/scons-test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/scons-test.py b/bin/scons-test.py index 2191532..046cf4b 100644 --- a/bin/scons-test.py +++ b/bin/scons-test.py @@ -15,6 +15,7 @@ # so that problems on different platforms can be identified sooner. # +import atexit import getopt import imp import os @@ -74,7 +75,7 @@ if not os.path.exists(tempdir): import shutil os.chdir(startdir) shutil.rmtree(tempdir) - sys.exitfunc = cleanup + atexit.register(cleanup) # Fetch the input file if it happens to be across a network somewhere. # Ohmigod, does Python make this simple... |