require.resolve all the things

This commit is contained in:
Chris Wanstrath
2011-11-06 14:38:28 -08:00
parent c9ea14d383
commit b3bc415166

View File

@@ -58,7 +58,7 @@ windowAdditions =
loadKeyBindings: ->
KeyBinder.load "#{@appRoot}/static/key-bindings.coffee"
if fs.isFile "~/.atomicity/key-bindings.coffee"
if fs.isFile require.resolve "~/.atomicity/key-bindings.coffee"
KeyBinder.load "~/.atomicity/key-bindings.coffee"
loadSettings: ->