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'
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)