aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-04-13 10:32:45 -0400
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-04-13 10:32:45 -0400
commit74cfb3b59c714d2e0ef91d0ad3fe02bc096faf56 (patch)
tree4e743664d4d139c35b4e656f267cb2a0d4799114 /tools/shared.py
parent55d9a3bc975cb4e9fefb79aeca6d5b9ef5fcea1f (diff)
parentffae4e81b6eec71922b662eea9a75f5693994cb2 (diff)
Merge remote-tracking branch 'upstream/incoming' into glmatrix
Conflicts: src/library_gl.js
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 58ca4ca5..ec3e8d09 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -126,6 +126,12 @@ JS_OPTIMIZER = path_from_root('tools', 'js-optimizer.js')
# Temp dir. Create a random one, unless EMCC_DEBUG is set, in which case use TEMP_DIR/emscripten_temp
+try:
+ TEMP_DIR
+except:
+ print >> sys.stderr, 'TEMP_DIR not defined in ~/.emscripten, using /tmp'
+ TEMP_DIR = '/tmp'
+
CANONICAL_TEMP_DIR = os.path.join(TEMP_DIR, 'emscripten_temp')
EMSCRIPTEN_TEMP_DIR = None