pixelpusher / liveprinter

Livecoding for 3D printers
GNU Affero General Public License v3.0
40 stars 5 forks source link

fix brython script execution #36

Open pixelpusher opened 5 years ago

pixelpusher commented 5 years ago

see thread here: https://groups.google.com/forum/#!topic/brython/bdUu5jjwQ3I

var src = "import datetime\n" + "for i in range(5):\n print(i)\n" + "print(datetime.datetime.now())" var js = BRYTHON.python_to_js(src) js += "console.log('ok')" eval(js)

https://github.com/brython-dev/brython/issues/937