From f507b18f6a21731618ac8042802b05eb23d79543 Mon Sep 17 00:00:00 2001 From: Chad Austin Date: Fri, 1 Feb 2013 14:07:23 -0800 Subject: emscripten.py no longer globally depends on tools.shared --- tools/tempfiles.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tools/tempfiles.py (limited to 'tools/tempfiles.py') 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) -- cgit v1.2.3-18-g5258