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

Commit

Permalink
set the PATH correctly on windows, using absolute paths to the mapnik…
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Nov 16, 2012
1 parent ab70ac6 commit b9475c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ process.argv[0] = 'node';
if (process.platform === 'win32') {
// HOME is undefined on windows
process.env.HOME = process.env.USERPROFILE;
process.env.PATH = "node_modules/mapnik/lib/mapnik/lib;node_modules/zipfile/lib;"+process.env.PATH;
// Add custom library paths to the PATH
process.env.PATH = path.join(__dirname,"node_modules/mapnik/lib/mapnik/lib") +
";" + path.join(__dirname,"node_modules/zipfile/lib");
}

// Default --config flag to user's home .tilemill.json config file.
Expand Down

0 comments on commit b9475c8

Please sign in to comment.