Bundle a themes directory so we don't depend on ~/.atom/themes

We'll look first in the user themes directory, then in the built-in
themes directory. This allows us to default to 'IR_Black' and not crash
if the user doesn't setup their `~/.atom/themes` directory.
This commit is contained in:
Nathan Sobo
2012-12-31 12:08:27 -06:00
parent 736bd1156b
commit fa7bcfe51b
24 changed files with 14725 additions and 3 deletions

View File

@@ -124,6 +124,13 @@ module.exports =
md5ForPath: (path) ->
$native.md5ForPath(path)
resolve: (paths...) ->
to = paths.pop()
for from in paths
path = @join(from, to)
return path if @exists(path)
undefined
isCompressedExtension: (ext) ->
_.contains([
'.gz'