mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
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:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user