added some Process methods (just copying nodejs)

This commit is contained in:
Corey Johnson 2011-08-24 09:50:19 -07:00
parent 05599d296b
commit fdcdcde2d7

View File

@ -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