Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Commit

Permalink
set HOME to HOMEPATH on windows since HOME is undefined by default on…
Browse files Browse the repository at this point in the history
… windows - closes tilemill-project#1055
  • Loading branch information
Dane Springmeyer committed Jan 5, 2012
1 parent 862ffe5 commit 135cd4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ process.title = 'tilemill';
// certain node installs (e.g. ubuntu node ppa) do not use `node` as the binary
// name.
process.argv[0] = 'node';
if (process.platform === 'win32') {
process.env.HOME = process.env.HOMEPATH;
}

// Default --config flag to user's home .tilemill.json config file.
// @TODO find a more elegant way to set a default for this value
Expand Down

0 comments on commit 135cd4e

Please sign in to comment.