Skip to content

Commit

Permalink
windows fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bahamas10 committed Jan 16, 2014
1 parent 5dd63b2 commit baef890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hue-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ function printf() { console.log(sprintf.apply(this, arguments)); }
var package = require('./package.json');

var app = 'node-hue-cli';
var homedir = process.env.HOME || process.env.USERPROFILE;
var configfile = path.join(process.env.HOME, '.hue.json');
var homedir = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;
var configfile = path.join(homedir, '.hue.json');
var config;
try {
config = JSON.parse(fs.readFileSync(configfile, 'utf-8'));
Expand Down

0 comments on commit baef890

Please sign in to comment.