Use __dirname when setting globalPaths

This commit is contained in:
Cheng Zhao 2015-02-13 12:55:06 +08:00
parent 3f3e66916a
commit 0b8efc434d
3 changed files with 4 additions and 3 deletions

View file

@ -21,7 +21,7 @@ process.argv.splice startMark, endMark - startMark + 1
# Add browser/api/lib to require's search paths,
# which contains javascript part of Atom's built-in libraries.
globalPaths = module.globalPaths
globalPaths.push path.join process.resourcesPath, 'atom', 'browser', 'api', 'lib'
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib')
# Import common settings.
require path.resolve(__dirname, '..', '..', 'common', 'lib', 'init')