diff --git a/src/stdlib/task-shell.coffee b/src/stdlib/task-shell.coffee index ea7f84ecf..39bb58c0e 100644 --- a/src/stdlib/task-shell.coffee +++ b/src/stdlib/task-shell.coffee @@ -20,8 +20,10 @@ self.callTaskMethod = (method, args...) -> # The worker's initial handler replaces itself when `start` is invoked self.handler = start: ({resourcePath, requirePath, handlerPath}) -> + self.resourcePath = resourcePath window.resourcePath = resourcePath importScripts(requirePath) + require 'config' self.handler = require(handlerPath) callTaskMethod 'started'