From dfd7bcae7fbfdaf27f2e0b8ceb9b383c20a5b903 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 9 Oct 2014 16:56:52 -0700 Subject: [PATCH] Use process.resourcesPath to find Atom shell root --- src/module-cache.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']