Use parent directory as resource path

This commit is contained in:
Kevin Sawicki
2013-06-27 09:19:37 -07:00
parent 3e8de2d22d
commit 0d252ab9fd

View File

@@ -10,5 +10,6 @@ module.exports = (grunt) ->
spawn cmd: 'pkill', args: ['Atom'], -> callback()
commands.push (callback) ->
atomBinary = path.join(grunt.config.get('atom.contentsDir'), 'MacOS', 'Atom')
spawn cmd: atomBinary, args: ['--test', "--resource-path=#{__dirname}"], (error) -> callback(error)
resourcePath = path.resolve(__dirname, '..')
spawn cmd: atomBinary, args: ['--test', "--resource-path=#{resourcePath}"], (error) -> callback(error)
grunt.util.async.waterfall commands, (error) -> done(error)