diff options
author | alon@honor <none@none> | 2010-10-17 20:59:50 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-10-17 20:59:50 -0700 |
commit | d16c1a6c068b8a293cf63723324e792dea187992 (patch) | |
tree | 9dbeb6ab275af1d60147d4b6df2776c7e873d49c /emscripten.py | |
parent | 4acb8fa3279136ab9cfc6279e0bf1372d6520d11 (diff) |
misc minor fixes
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emscripten.py b/emscripten.py index 6ab17de9..a0351ab7 100755 --- a/emscripten.py +++ b/emscripten.py @@ -13,7 +13,7 @@ def emscripten(filename, settings): data = open(filename, 'r').read() cwd = os.getcwd() os.chdir(os.path.dirname(COMPILER)) - subprocess.Popen([JS_ENGINE, COMPILER], stdin=subprocess.PIPE).communicate(settings+'\n'+data)[0] + subprocess.Popen(JS_ENGINE + [COMPILER], stdin=subprocess.PIPE).communicate(settings+'\n'+data)[0] os.chdir(cwd) if __name__ == '__main__': @@ -32,6 +32,6 @@ Emscripten usage: emscripten.py INFILE [PATH-TO-JS-ENGINE] [SETTINGS] ''' else: if len(sys.argv) >= 3: - JS_ENGINE = sys.argv[2] + JS_ENGINE = [sys.argv[2]] emscripten(sys.argv[1], sys.argv[3] if len(sys.argv) == 4 else "{}") |