Use process.resourcesPath to find Atom shell root

This commit is contained in:
Kevin Sawicki
2014-10-09 16:56:52 -07:00
parent 0cfd37acd0
commit dfd7bcae7f

View File

@@ -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']