mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04: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:
@@ -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