X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=index.js;h=b0a115f79dd8d0e1393cde0600838203df5e19a7;hb=1e320ca83bc7836cc1462bc67e4048c5c074a469;hp=9b7270b7673e03e1ae78c803b68c6af054551b9f;hpb=f49cdc229d3db14bb00667c9e6d105c1d67274a8;p=zombocom-ai diff --git a/index.js b/index.js index 9b7270b..b0a115f 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,7 @@ const port = 2122; const python_path = '/usr/bin/python3' const generate_image_script = '/home/cworth/src/zombocom-ai/generate-image.py' -const run_turtle_script = '/home/cworth/src/zombocom-ai/run-turtle.py' +const interpret_cairo_script = '/home/cworth/src/zombocom-ai/interpret-cairo-to-svg.py' const state_file = 'zombocom-state.json' const targets_dir = '/srv/cworth.org/zombocom/targets' const images_dir = '/srv/cworth.org/zombocom/images' @@ -197,7 +197,7 @@ io_bus.on("connection", (socket) => { socket.on('run', code => { try { - output = child_process.execFileSync(python_path, [run_turtle_script, code], { input: code }); + output = child_process.execFileSync(python_path, [interpret_cairo_script, code], { input: code }); // Grab just first line of output const nl = output.indexOf("\n"); if (nl === -1)