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

@ -11,19 +11,19 @@ var slice = [].slice;
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'));
if (process.platform === 'win32') {
// Redirect node's console to use our own implementations, since node can not