Remove unneeded resolve calls
This commit is contained in:
parent
006c77a00f
commit
418efbe660
2 changed files with 8 additions and 8 deletions
|
@ -11,19 +11,19 @@ var slice = [].slice;
|
||||||
process.argv.splice(1, 1);
|
process.argv.splice(1, 1);
|
||||||
|
|
||||||
// Clear search paths.
|
// Clear search paths.
|
||||||
require(path.resolve(__dirname, '..', 'common', 'reset-search-paths'));
|
require('../common/reset-search-paths');
|
||||||
|
|
||||||
// Import common settings.
|
// Import common settings.
|
||||||
require(path.resolve(__dirname, '..', 'common', 'init'));
|
require('../common/init');
|
||||||
|
|
||||||
var globalPaths = Module.globalPaths;
|
var globalPaths = Module.globalPaths;
|
||||||
|
|
||||||
if (!process.env.ELECTRON_HIDE_INTERNAL_MODULES) {
|
if (!process.env.ELECTRON_HIDE_INTERNAL_MODULES) {
|
||||||
globalPaths.push(path.resolve(__dirname, 'api'));
|
globalPaths.push(path.join(__dirname, 'api'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Expose public APIs.
|
// Expose public APIs.
|
||||||
globalPaths.push(path.resolve(__dirname, 'api', 'exports'));
|
globalPaths.push(path.join(__dirname, 'api', 'exports'));
|
||||||
|
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
// Redirect node's console to use our own implementations, since node can not
|
// Redirect node's console to use our own implementations, since node can not
|
||||||
|
|
|
@ -9,19 +9,19 @@ const Module = require('module');
|
||||||
process.argv.splice(1, 1);
|
process.argv.splice(1, 1);
|
||||||
|
|
||||||
// Clear search paths.
|
// Clear search paths.
|
||||||
require(path.resolve(__dirname, '..', 'common', 'reset-search-paths'));
|
require('../common/reset-search-paths');
|
||||||
|
|
||||||
// Import common settings.
|
// Import common settings.
|
||||||
require(path.resolve(__dirname, '..','common', 'init'));
|
require('../common/init');
|
||||||
|
|
||||||
var globalPaths = Module.globalPaths;
|
var globalPaths = Module.globalPaths;
|
||||||
|
|
||||||
if (!process.env.ELECTRON_HIDE_INTERNAL_MODULES) {
|
if (!process.env.ELECTRON_HIDE_INTERNAL_MODULES) {
|
||||||
globalPaths.push(path.resolve(__dirname, 'api'));
|
globalPaths.push(path.join(__dirname, 'api'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Expose public APIs.
|
// 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
|
// The global variable will be used by ipc for event dispatching
|
||||||
var v8Util = process.atomBinding('v8_util');
|
var v8Util = process.atomBinding('v8_util');
|
||||||
|
|
Loading…
Reference in a new issue