Auto create dirs

This commit is contained in:
2019-03-22 10:57:49 +01:00
parent 5fb61b9956
commit d3a04d47f3

View File

@@ -11,6 +11,10 @@ const port = 8000;
const aisPath = "pytron_run/ai_manager/" const aisPath = "pytron_run/ai_manager/"
const aisPathOld = "pytron_run/ai_manager_old" 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 pythonRunning = false;
let pythonShouldRun = false; let pythonShouldRun = false;