aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-09-12 18:59:58 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-09-12 18:59:58 -0700
commit103314ffafc441a432b5d964015496bc492a81bc (patch)
treecd5abbc1652df7aa7d1747586503d37c5cc4efd1 /emcc
parent892cadaef42843e3e8d028dfc75fd5663255bc52 (diff)
make all temp files be in TEMP_DIR from ~/.emscripten
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc5
1 files changed, 4 insertions, 1 deletions
diff --git a/emcc b/emcc
index aa8827da..d8c41512 100755
--- a/emcc
+++ b/emcc
@@ -414,7 +414,10 @@ if TEMP_DIR:
shutil.rmtree(temp_dir) # clear it
os.makedirs(temp_dir)
else:
- temp_dir = tempfile.mkdtemp()
+ temp_root = os.path.join(shared.TEMP_DIR, 'emcc')
+ if not os.path.exists(temp_root):
+ os.makedirs(temp_root)
+ temp_dir = tempfile.mkdtemp(dir=temp_root)
def in_temp(name):
return os.path.join(temp_dir, os.path.basename(name))