Skip to content

Commit 8b2026e

Browse files
committed
* inst/private/__arduino_binary__.m: add localappdir/programs to search
1 parent 256b97d commit 8b2026e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

inst/private/__arduino_binary__.m

+12
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@
8181
arduino_binary = trypath;
8282
endif
8383
endif
84+
if isempty(arduino_binary)
85+
trypath = fullfile (getenv ("LOCALAPPDATA"), "Programs", "Arduino IDE", "Arduino IDE.exe");
86+
if exist (trypath, "file")
87+
arduino_binary = trypath;
88+
endif
89+
endif
90+
if isempty(arduino_binary)
91+
trypath = fullfile (getenv ("PROGRAMFILES"), "Arduino IDE", "Arduino IDE.exe");
92+
if exist (trypath, "file")
93+
arduino_binary = trypath;
94+
endif
95+
endif
8496
endif
8597

8698
% look for arduino prefs file

0 commit comments

Comments
 (0)