From fdcdcde2d7463fe18504cd73feac8a14b1b75818 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 24 Aug 2011 09:50:19 -0700 Subject: [PATCH] added some Process methods (just copying nodejs) --- HTML/lib/osx.coffee | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/HTML/lib/osx.coffee b/HTML/lib/osx.coffee index 17851b8ab..e2ead31b4 100644 --- a/HTML/lib/osx.coffee +++ b/HTML/lib/osx.coffee @@ -126,6 +126,13 @@ Dir = _.map OSX.NSFileManager.defaultManager.subpathsAtPath(path), (entry) -> "#{path}/#{entry}" +Process = + cwd: -> + OSX.NSFileManager.defaultManager.currentDirectoryPath() + + env: -> + OSX.NSProcess.processInfo.environment() + this.Chrome = Chrome this.File = File this.Dir = Dir