Use app.getHomeDir() API to get home dir.

This commit is contained in:
Cheng Zhao 2013-06-19 13:57:31 +08:00
parent 01a7b5fbc6
commit e0f806f0fb

View File

@ -9,7 +9,7 @@ optimist = require 'optimist'
nslog = require 'nslog'
_ = require 'underscore'
global.homeDir = process.env[if process.platform is 'win32' then 'USERPROFILE' else 'HOME']
global.homeDir = app.getHomeDir()
console.log = (args...) ->
nslog(args.map((arg) -> JSON.stringify(arg)).join(" "))