diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-07-30 10:43:43 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-07-30 10:43:43 -0700 |
commit | 3268d11056f2ee5544dbad295c6cbde245e1306c (patch) | |
tree | aef54ac34ae87a03fab9f2c7d9c96fd4891d22a2 /emscripten.py | |
parent | f6e02c614a905658fe164e19548d4436854253bd (diff) |
fix for running emscripten on a file in the local directory
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index a770cdd6..022068c8 100755 --- a/emscripten.py +++ b/emscripten.py @@ -219,7 +219,7 @@ if __name__ == '__main__': keywords, positional = parser.parse_args() if len(positional) != 1: raise RuntimeError('Must provide exactly one positional argument.') - keywords.infile = positional[0] + keywords.infile = os.path.abspath(positional[0]) if isinstance(keywords.outfile, basestring): keywords.outfile = open(keywords.outfile, 'w') |