diff --git a/TaskServer/TaskServer.js b/TaskServer/TaskServer.js index 49a1f31d7..c9e327ed6 100644 --- a/TaskServer/TaskServer.js +++ b/TaskServer/TaskServer.js @@ -48,16 +48,6 @@ exports.newTaskServer = function newTaskServer() { } } else { - /* - This process was started not by the Task Manager, but independently - (most likely for debugging purposes). In this case we listen to an event - with the Task Info that should be emitted at the UI, bypassing the Task Manager. - But before that, we need to change the path of these env variables since the home - directory now is TaskServer and not its parent. - */ - global.env.PATH_TO_DATA_STORAGE = '.' + global.env.PATH_TO_DATA_STORAGE - global.env.PATH_TO_PROJECTS = '.' + global.env.PATH_TO_PROJECTS - global.env.PATH_TO_LOG_FILES = '.' + global.env.PATH_TO_LOG_FILES try { TS.projects.foundations.globals.taskConstants.EVENT_SERVER_CLIENT_MODULE_OBJECT.listenToEvent('Task Server', 'Debug Task Started', undefined, 'Task Server', undefined, startDebugging)