diff options
author | anatoly techtonik <techtonik@gmail.com> | 2012-12-19 22:41:31 +0300 |
---|---|---|
committer | anatoly techtonik <techtonik@gmail.com> | 2012-12-19 22:41:31 +0300 |
commit | 0eee4765a4621cee3100d22a941a9c2742b628b2 (patch) | |
tree | 5b53542690a04881550fcfe095358d5ccc12602f /bin | |
parent | 5ac54eb6fc41b3037fe775cf42522bd876358bfd (diff) | |
download | scons-0eee4765a4621cee3100d22a941a9c2742b628b2.tar.gz |
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 2191532c..046cf4b0 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... |