globalPaths = Module.globalPaths
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib', 'exports')
-unless process.env.ELECTRON_DISABLE_OLD_STYLE_MODULES
+unless process.env.ELECTRON_HIDE_INTERNAL_MODULES
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib')
if process.platform is 'win32'
catch e
process.binding "atom_common_#{name}" if /No such module/.test e.message
-unless process.env.ELECTRON_DISABLE_OLD_STYLE_MODULES
+unless process.env.ELECTRON_HIDE_INTERNAL_MODULES
# Add common/api/lib to module search paths.
Module.globalPaths.push path.resolve(__dirname, '..', 'api', 'lib')
globalPaths = Module.globalPaths
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib', 'exports')
-unless process.env.ELECTRON_DISABLE_OLD_STYLE_MODULES
+unless process.env.ELECTRON_HIDE_INTERNAL_MODULES
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib')
# The global variable will be used by ipc for event dispatching