diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-09-12 18:59:58 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-09-12 18:59:58 -0700 |
commit | 103314ffafc441a432b5d964015496bc492a81bc (patch) | |
tree | cd5abbc1652df7aa7d1747586503d37c5cc4efd1 /emcc | |
parent | 892cadaef42843e3e8d028dfc75fd5663255bc52 (diff) |
make all temp files be in TEMP_DIR from ~/.emscripten
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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)) |