From 198ddd04e5c464839448fdfa9fc5dcf0faac13c6 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 5 Mar 2016 16:57:40 -0800 Subject: more python fixes --- scripts/spidermonkify.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'scripts/spidermonkify.py') diff --git a/scripts/spidermonkify.py b/scripts/spidermonkify.py index 992e7d48d..bca6458f7 100644 --- a/scripts/spidermonkify.py +++ b/scripts/spidermonkify.py @@ -59,12 +59,12 @@ parts[1] = str(int(math.ceil(float(parts[1]) / PAGE_SIZE))) if len(parts) == 3: parts[2] = str(int(math.ceil(float(parts[2]) / PAGE_SIZE))) wast = wast[:memory_start] + ' '.join(parts) + \ - wast[memory_end:memory_end + 1] + \ - ' (export "memory" memory) ' + wast[memory_end + 1:] + wast[memory_end:memory_end + 1] + \ + ' (export "memory" memory) ' + wast[memory_end + 1:] open(wast_target, 'w').write(wast) # convert to binary using spidermonkey -subprocess.check_call(emscripten.shared.SPIDERMONKEY_ENGINE + ['-e', - 'os.file.writeTypedArrayToFile("%s", new Uint8Array(wasmTextToBinary(os.file.readFile("%s"))))' % (wasm_target, wast_target) -]) - +subprocess.check_call(emscripten.shared.SPIDERMONKEY_ENGINE + + ['-e', 'os.file.writeTypedArrayToFile("' + wasm_target + \ + '", new Uint8Array(wasmTextToBinary(os.file.readFile("' + \ + wast_target + '"))))']) -- cgit v1.2.3