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

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