Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Hotfix for Atom's bug with process.env.PATH // Issue #94
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Apr 14, 2016
1 parent 1833e9b commit 2ef99ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 1.1.2 (2016-??-??)

* Hotfix for Atom's bug with `process.env.PATH` ([#94](https://github.com/platformio/platformio-atom-ide/issues/94))

## 1.1.1 (2016-03-28)

* Added `Menu: PlatformIO > Update Atom packages` item
Expand Down
5 changes: 5 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ module.exports = {
},

activate: function() {
// @TODO Hotfix for https://github.com/atom/atom/issues/11302
if (!('PATH' in process.env) && 'Path' in process.env) {
process.env.PATH = process.env.Path;
}

this.subscriptions = new CompositeDisposable();

maintenance.updateOSEnviron();
Expand Down

0 comments on commit 2ef99ac

Please sign in to comment.