From 1207ced5fa6598282c02a974abc604945aee777d Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Sun, 6 Nov 2011 13:58:15 -0800 Subject: [PATCH] So corey can reload without bugging others. --- src/require.coffee | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/require.coffee b/src/require.coffee index c9f691c3b..6bc1e6559 100644 --- a/src/require.coffee +++ b/src/require.coffee @@ -1,5 +1,8 @@ -resourcePath = OSX.NSBundle.mainBundle.resourcePath -#resourcePath = "/Users/corey/code/mine/Atomicity" +# Hack to get code reloading working in dev mode +if OSX.NSUserName().valueOf() == "corey" + resourcePath = "/Users/corey/code/mine/Atomicity" +else + resourcePath = OSX.NSBundle.mainBundle.resourcePath paths = [ "#{resourcePath}/src"