Update requires paths

This commit is contained in:
Kevin Sawicki 2016-03-08 11:07:42 -08:00
parent f109591d03
commit 006c77a00f
6 changed files with 11 additions and 12 deletions

View file

@ -9,19 +9,19 @@ const Module = require('module');
process.argv.splice(1, 1);
// Clear search paths.
require(path.resolve(__dirname, '..', '..', 'common', 'lib', 'reset-search-paths'));
require(path.resolve(__dirname, '..', 'common', 'reset-search-paths'));
// Import common settings.
require(path.resolve(__dirname, '..', '..', 'common', 'lib', 'init'));
require(path.resolve(__dirname, '..','common', 'init'));
var globalPaths = Module.globalPaths;
if (!process.env.ELECTRON_HIDE_INTERNAL_MODULES) {
globalPaths.push(path.resolve(__dirname, '..', 'api', 'lib'));
globalPaths.push(path.resolve(__dirname, 'api'));
}
// Expose public APIs.
globalPaths.push(path.resolve(__dirname, '..', 'api', 'lib', 'exports'));
globalPaths.push(path.resolve(__dirname, 'api', 'exports'));
// The global variable will be used by ipc for event dispatching
var v8Util = process.atomBinding('v8_util');