# js_blur.py import tempfile import webbrowser import os js_data = '''
''' chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s' tf = tempfile.mktemp(".html", "JSdemo_") print tf with open(tf, 'w') as temp: temp.write(js_data) webbrowser.get(chrome_path).open(tf) os.remove(tf)