Auto create dirs

This commit is contained in:
Thomas Forgione 2019-03-22 10:57:49 +01:00
parent 5fb61b9956
commit d3a04d47f3
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 4 additions and 0 deletions

View File

@ -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;