diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-05 18:11:31 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-05 18:11:31 -0800 |
commit | c35586c36c8ac7aaf1c934862555976ca0f04c89 (patch) | |
tree | 4c94d73731ebf1015b6918af1989e6b722eb2863 /emcc | |
parent | 6efa942efdd468c10c6377ad04c9fb9b61f34d16 (diff) |
fix bug with emcc not respecting absolute paths and always placing outputs in the current directory
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -550,12 +550,12 @@ try: if final_suffix == 'html': if DEBUG: print >> sys.stderr, 'emcc: generating HTML' shell = open(shared.path_from_root('src', 'shell.html')).read() - html = open(target_basename + '.html', 'w') + html = open(target, 'w') html.write(shell.replace('{{{ SCRIPT_CODE }}}', open(final).read())) html.close() else: # copy final JS to output - shutil.move(final, target_basename + '.js') + shutil.move(final, target) finally: if not TEMP_DIR: |