From 1e149a19e7862e4ae167e110a096e653453e5371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Wed, 23 Oct 2013 13:17:39 +0300 Subject: [PATCH] Specify the OS default temp directory as the temp dir for the sdk. --- emsdk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emsdk b/emsdk index 31728b9..516ba49 100644 --- a/emsdk +++ b/emsdk @@ -1,6 +1,6 @@ #!/usr/bin/env python -import sys, optparse, subprocess, urllib2, os, os.path, errno, zipfile, string, json, platform, shutil, tarfile, urlparse +import sys, optparse, subprocess, urllib2, os, os.path, errno, zipfile, string, json, platform, shutil, tarfile, urlparse, tempfile # EMSDK_DEV is a developer mode flag, which, if true, the SDK is downloaded from a 'staging' online source, # instead of the public source. New releases are first deployed to the staging source for testing, before @@ -326,7 +326,7 @@ JS_ENGINES = [NODE_JS] cfg += '''SPIDERMONKEY_ENGINE = '' V8_ENGINE = '' -TEMP_DIR = ''' + "'" + sdk_path(temp_dir) + "'" + ''' +TEMP_DIR = ''' + "'" + tempfile.gettempdir().replace('\\', '/') + "'" + ''' COMPILER_ENGINE = NODE_JS JS_ENGINES = [NODE_JS] '''