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

Commit

Permalink
set the custom PATH for windows in index.js to avoid having to set in…
Browse files Browse the repository at this point in the history
… the environment - refs tilemill-project#1742
  • Loading branch information
Dane Springmeyer committed Oct 9, 2012
1 parent 082a89f commit 455c06a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ 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;
}

// Default --config flag to user's home .tilemill.json config file.
Expand Down
2 changes: 1 addition & 1 deletion platforms/windows/run-tilemill.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
cd /d %~dp0
@rem then move to main tilemill folder
cd ..\..\
set PATH=node_modules\mapnik\lib\mapnik\lib;node_modules\zipfile\lib;%PATH%
@rem set PATH=node_modules/mapnik/lib/mapnik/lib;node_modules/zipfile/lib;%PATH%
@rem start /min cmd /C "node .\index.js 1>>"%USERPROFILE%"\tilemill.log 2>&1"
node.exe .\index.js

0 comments on commit 455c06a

Please sign in to comment.