Set process.resourcesPath in C++

This commit is contained in:
Cheng Zhao 2015-02-13 13:32:58 +08:00
parent 0f15dd04af
commit 4834eed520
3 changed files with 27 additions and 25 deletions

View file

@ -3,10 +3,6 @@ path = require 'path'
module = require 'module'
util = require 'util'
# Expose information of current process.
process.type = 'browser'
process.resourcesPath = path.resolve process.argv[1], '..', '..', '..', '..'
# We modified the original process.argv to let node.js load the atom.js,
# we need to restore it here.
process.argv.splice 1, 1