Set process.resourcesPath in C++
This commit is contained in:
parent
0f15dd04af
commit
4834eed520
3 changed files with 27 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue