From 64516b72427c2c43e190c3807bf6aae516e2d4b4 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sat, 27 Aug 2011 14:14:59 -0700 Subject: [PATCH] File.expand './dir' --- src/osx.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osx.coffee b/src/osx.coffee index 75276c9c5..0b68c196d 100644 --- a/src/osx.coffee +++ b/src/osx.coffee @@ -118,6 +118,9 @@ File = expand: (path) -> if /~/.test path OSX.NSString.stringWithString(path).stringByExpandingTildeInPath + else if path.indexOf('./') is 0 + root = OSX.NSBundle.mainBundle.resourcePath + "#{root}/#{path}" else path isFile: (path) ->