Use __dirname when setting globalPaths
This commit is contained in:
parent
3f3e66916a
commit
0b8efc434d
3 changed files with 4 additions and 3 deletions
|
@ -12,7 +12,7 @@ process.atomBinding = (name) ->
|
|||
|
||||
# Add common/api/lib to module search paths.
|
||||
globalPaths = Module.globalPaths
|
||||
globalPaths.push path.join(process.resourcesPath, 'atom', 'common', 'api', 'lib')
|
||||
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib')
|
||||
|
||||
# setImmediate and process.nextTick makes use of uv_check and uv_prepare to
|
||||
# run the callbacks, however since we only run uv loop on requests, the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue