diff --git a/server.js b/server.js index 95c9995..e155b24 100644 --- a/server.js +++ b/server.js @@ -11,6 +11,10 @@ const port = 8000; const aisPath = "pytron_run/ai_manager/" const aisPathOld = "pytron_run/ai_manager_old" +// Create the directories to store the files +try { fs.mkdirSync('pytron_run/ai_manager'); } catch { } +try { fs.mkdirSync('pytron_run/ai_manager_old'); } catch { } + let pythonRunning = false; let pythonShouldRun = false;