aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2013-04-04 16:11:57 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2013-04-04 16:11:57 +0700
commit2fc27b89479caf051a7d032c4ca2e001baec2623 (patch)
tree04eb6d438517190bb5ed57e09fc179e667adce74 /tools
parent1613b96ed8d1f85b8c58fa0da6c0527075d01d82 (diff)
Fix calling try_delete before importing it.
Previously, the import of try_delete was after one of the blocks of code that called it, so it could result in an error at runtime.
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 5f3968a2..61779c59 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -7,6 +7,9 @@ def listify(x):
if type(x) is not list: return [x]
return x
+# Temp file utilities
+from tempfiles import try_delete
+
# On Windows python suffers from a particularly nasty bug if python is spawning new processes while python itself is spawned from some other non-console process.
# Use a custom replacement for Popen on Windows to avoid the "WindowsError: [Error 6] The handle is invalid" errors when emcc is driven through cmake or mingw32-make.
# See http://bugs.python.org/issue3905
@@ -427,9 +430,6 @@ if not WINDOWS:
except:
pass
-# Temp file utilities
-from tempfiles import try_delete
-
# Utilities
def check_engine(engine):