From 1a76e3dc9dc3fed7803c2013c3f3c8bcfeb6f359 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 15 Jul 2013 12:18:50 -0700 Subject: [PATCH] Add missing '..' to node directory path The path has changed and one more parent directory needs to be traversed to find the bundled path to node for spawning child processes. --- CHANGELOG.md | 2 ++ src/stdlib/buffered-process.coffee | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a770bcf5..61765affb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +* Fixed: Search never completing in the command panel + * Fixed: cmd-n now works when no windows are open * Fixed: Error selecting a grammar for an untitled editor diff --git a/src/stdlib/buffered-process.coffee b/src/stdlib/buffered-process.coffee index 94c75137c..a24381999 100644 --- a/src/stdlib/buffered-process.coffee +++ b/src/stdlib/buffered-process.coffee @@ -43,7 +43,7 @@ class BufferedProcess addNodeDirectoryToPath: (options) -> options.env ?= process.env pathSegments = [] - nodeDirectoryPath = path.resolve(process.execPath, '..', '..', '..', '..', 'Resources') + 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))