Skip to content

Commit

Permalink
Add dummy 'root' substitution for run_template.html
Browse files Browse the repository at this point in the history
  • Loading branch information
meredydd committed Aug 31, 2016
1 parent 96b11cd commit ad58b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skulpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ def run_in_browser(fn, options, debug_mode=False):

with open('support/run_template.html') as tpfile:
page = tpfile.read()
page = page % dict(code=prog,scripts=scripts,debug_mode=str(debug_mode).lower())
page = page % dict(code=prog,scripts=scripts,debug_mode=str(debug_mode).lower(),root="")

with open("{0}/run.html".format(RUN_DIR),"w") as htmlfile:
htmlfile.write(page)
Expand Down

0 comments on commit ad58b6e

Please sign in to comment.