Skip to content

Commit 3cf446f

Browse files
committed
Lets see if this fixes #300
1 parent 5a9c1e1 commit 3cf446f

File tree

1 file changed

+6
-0
lines changed
  • it.baeyens.arduino.common/src/it/baeyens/arduino/common

1 file changed

+6
-0
lines changed

it.baeyens.arduino.common/src/it/baeyens/arduino/common/Common.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,14 @@ public static File getPreferenceFile() {
605605
* @return
606606
*/
607607
public static String getDefaultPrivateHardwarePath() {
608+
if (Platform.getOS().equals(Platform.OS_WIN32)) {
609+
IPath homPath = new Path(System.getProperty("user.dir"));
610+
return homPath.append("Arduino").append("hardware").toString();
611+
}
612+
608613
IPath homPath = new Path(System.getProperty("user.home"));
609614
return homPath.append("Arduino").append("hardware").toString();
615+
610616
}
611617

612618
public static File getArduinoIdeDumpName(String packageName, String architecture, String boardID) {

0 commit comments

Comments
 (0)