Use resource path from atom.getLoadSettings()

This commit is contained in:
Kevin Sawicki
2013-11-21 16:32:12 -08:00
parent 27f779ec03
commit 2a5f393712

View File

@@ -64,11 +64,13 @@ window.unloadEditorWindow = ->
windowEventHandler?.unsubscribe()
installAtomCommand = (callback) ->
commandPath = path.join(window.resourcePath, 'atom.sh')
{resourcePath} = atom.getLoadSettings()
commandPath = path.join(resourcePath, 'atom.sh')
require('./command-installer').install(commandPath, callback)
installApmCommand = (callback) ->
commandPath = path.join(window.resourcePath, 'node_modules', '.bin', 'apm')
{resourcePath} = atom.getLoadSettings()
commandPath = path.join(resourcePath, 'node_modules', '.bin', 'apm')
require('./command-installer').install(commandPath, callback)
window.deserializeEditorWindow = ->