Remove unneeded resolve calls

This commit is contained in:
Kevin Sawicki 2016-03-08 11:10:31 -08:00
parent 006c77a00f
commit 418efbe660
2 changed files with 8 additions and 8 deletions

View file

@ -11,19 +11,19 @@ var slice = [].slice;
process.argv.splice(1, 1);
// Clear search paths.
require(path.resolve(__dirname, '..', 'common', 'reset-search-paths'));
require('../common/reset-search-paths');
// Import common settings.
require(path.resolve(__dirname, '..', 'common', 'init'));
require('../common/init');
var globalPaths = Module.globalPaths;
if (!process.env.ELECTRON_HIDE_INTERNAL_MODULES) {
globalPaths.push(path.resolve(__dirname, 'api'));
globalPaths.push(path.join(__dirname, 'api'));
}
// Expose public APIs.
globalPaths.push(path.resolve(__dirname, 'api', 'exports'));
globalPaths.push(path.join(__dirname, 'api', 'exports'));
if (process.platform === 'win32') {
// Redirect node's console to use our own implementations, since node can not

View file

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