diff --git a/src/module-cache.coffee b/src/module-cache.coffee index dc62fcae1..80d2b55da 100644 --- a/src/module-cache.coffee +++ b/src/module-cache.coffee @@ -142,7 +142,7 @@ registerBuiltins = (devMode) -> else cache.builtins.atom = path.join(cache.resourcePath, 'exports', 'atom.js') - atomShellRoot = path.resolve(window.location.pathname, '..', '..', '..', 'atom') + atomShellRoot = path.join(process.resourcesPath, 'atom') commonRoot = path.join(atomShellRoot, 'common', 'api', 'lib') commonBuiltins = ['callbacks-registry', 'clipboard', 'crash-reporter', 'screen', 'shell']