Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use cross platform HOME #1055

Closed
springmeyer opened this issue Dec 24, 2011 · 0 comments
Closed

use cross platform HOME #1055

springmeyer opened this issue Dec 24, 2011 · 0 comments
Labels
Milestone

Comments

@springmeyer
Copy link
Member

process.env.HOME does not exist on windows, but process.env.HOMEPATH does. process.env.HOME is used many places, even by dependencies of TileMill, so we should likely do at startup in index.js on windows:

if (process.platform == 'win32') {
    process.env.HOME = process.env.HOMEPATH;
}

Unless there is reason to store documents in a custom location. Needs more research.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant