diff options
author | Chad Austin <chad@imvu.com> | 2013-02-01 14:07:23 -0800 |
---|---|---|
committer | Chad Austin <chad@imvu.com> | 2013-03-04 19:31:47 -0800 |
commit | f507b18f6a21731618ac8042802b05eb23d79543 (patch) | |
tree | 93851b2d5d550fd4ebf2f8111335accf7af59421 /tools/tempfiles.py | |
parent | fd4fec473e627336117b61590e1e0c039dd87919 (diff) |
emscripten.py no longer globally depends on tools.shared
Diffstat (limited to 'tools/tempfiles.py')
-rw-r--r-- | tools/tempfiles.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/tempfiles.py b/tools/tempfiles.py new file mode 100644 index 00000000..1953691e --- /dev/null +++ b/tools/tempfiles.py @@ -0,0 +1,8 @@ +import os +import shutil + +def try_delete(filename): + try: + os.unlink(filename) + except: + shutil.rmtree(filename, ignore_errors=True) |