Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Use generic HOME environment variable for Windows if set #44

Merged
merged 1 commit into from
Jan 24, 2018

Conversation

ivankravets
Copy link
Contributor

Normally, USERPROFILE is only the one environment variable which Windows applications use to determine home directory. A lot of tools support HOME and cross-common environment variable (git, etc.). Even Python interpreter checks for HOME before USERPROFILE.

We have a few reported issues related to this problem. Our tool is written in Python but we have PlatformIO IDE extensions for Atom/VSCode. As result, getHomeDirectory differs from Python's os.path.expanduser.

Sure, we can implement own getHomeDirectory in our Node.JS helper tools but I think this PR could be useful for other developers who use a common HOME environment variable.

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

Successfully merging this pull request may close these issues.

None yet

2 participants