Skip to content

Commit a8b683e

Browse files
committed
Update arduinoSettings.ts
1 parent 9544a5f commit a8b683e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/arduino/arduinoSettings.ts

+2
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ export class ArduinoSettings implements IArduinoSettings {
214214
this._packagePath = path.join(this._arduinoPath, "portable");
215215
} else if (util.fileExistsSync(path.join(this._arduinoPath, "AppxManifest.xml"))) {
216216
this._packagePath = path.join(folder, "ArduinoData");
217+
} else if (process.env.hasOwnProperty('ARDUINO_DIRECTORIES_DATA')) {
218+
this._packagePath = process.env.ARDUINO_DIRECTORIES_DATA
217219
} else {
218220
this._packagePath = path.join(process.env.LOCALAPPDATA, "Arduino15");
219221
}

0 commit comments

Comments
 (0)