Skip to content
This repository
Browse code

set the PATH correctly on windows, using absolute paths to the mapnik…

… and zipfile libs - this actually works now and will obsolete the code at https://github.com/mapbox/tilemill-win-launcher/blob/f15a96cd1ba70ac38b5ecc1efa61f8562d6ccc0b/tilemill.cc#L209 - refs #1742
  • Loading branch information...
commit b9475c8e65dc70a362b1e2b310ef1baf9ba0db39 1 parent ab70ac6
Dane Springmeyer authored November 16, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  index.js
4  index.js
@@ -15,7 +15,9 @@ process.argv[0] = 'node';
15 15
 if (process.platform === 'win32') {
16 16
     // HOME is undefined on windows
17 17
     process.env.HOME = process.env.USERPROFILE;
18  
-    process.env.PATH = "node_modules/mapnik/lib/mapnik/lib;node_modules/zipfile/lib;"+process.env.PATH;
  18
+    // Add custom library paths to the PATH
  19
+    process.env.PATH = path.join(__dirname,"node_modules/mapnik/lib/mapnik/lib") +
  20
+        ";" + path.join(__dirname,"node_modules/zipfile/lib");
19 21
 }
20 22
 
21 23
 // Default --config flag to user's home .tilemill.json config file.

0 notes on commit b9475c8

Please sign in to comment.
Something went wrong with that request. Please try again.