aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc4
1 files changed, 2 insertions, 2 deletions
diff --git a/emcc b/emcc
index 6bb209a5..36c2464a 100755
--- a/emcc
+++ b/emcc
@@ -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: