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.
This commit is contained in:
Kevin Sawicki
2013-07-15 12:18:50 -07:00
parent ff70ae633d
commit 1a76e3dc9d
2 changed files with 3 additions and 1 deletions

View File

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

View File

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