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