From 32a0faf068935bcfda84d952f08eb615b6c2f181 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sat, 10 Aug 2013 15:36:23 +0800 Subject: [PATCH] Don't assume we have a bundled node process in BufferedProcess. --- src/stdlib/buffered-process.coffee | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/stdlib/buffered-process.coffee b/src/stdlib/buffered-process.coffee index a24381999..748997803 100644 --- a/src/stdlib/buffered-process.coffee +++ b/src/stdlib/buffered-process.coffee @@ -9,7 +9,6 @@ class BufferedProcess constructor: ({command, args, options, stdout, stderr, exit}={}) -> options ?= {} - @addNodeDirectoryToPath(options) @process = ChildProcess.spawn(command, args, options) stdoutClosed = true @@ -40,14 +39,6 @@ class BufferedProcess processExited = true triggerExitCallback() - addNodeDirectoryToPath: (options) -> - options.env ?= process.env - pathSegments = [] - nodeDirectoryPath = path.resolve(process.execPath, '..', '..', '..', '..', '..', 'Resources') - pathSegments.push(nodeDirectoryPath) - pathSegments.push(options.env.PATH) if options.env.PATH - options.env = _.extend({}, options.env, PATH: pathSegments.join(path.delimiter)) - bufferStream: (stream, onLines, onDone) -> stream.setEncoding('utf8') buffered = ''