diff options
| author | Alex Szczuczko <alex@szc.ca> | 2012-09-25 21:34:26 -0400 |
|---|---|---|
| committer | Alex Szczuczko <alex@szc.ca> | 2012-09-25 21:34:26 -0400 |
| commit | 184b482a98a5047726250507baae5d16d81bb804 (patch) | |
| tree | 9d28e6f81ba13e942239d50ba4515257cca984e6 /bin | |
| parent | 184230fcf2ac9075fee642be8948d406913cb7df (diff) | |
Update boards_txt path in bin/ard-parse-boards to include environment variable ARDUINO_DIR
This corrects the behaviour of ard-parse-boards --boards , which would
fail if the path to boards.txt on the system didn't match the value
which was hardcoded.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/ard-parse-boards | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ard-parse-boards b/bin/ard-parse-boards index e2de71b..de046c0 100755 --- a/bin/ard-parse-boards +++ b/bin/ard-parse-boards @@ -9,7 +9,7 @@ use YAML; my %Opt = ( - boards_txt => '/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/boards.txt', + boards_txt => "$ENV{'ARDUINO_DIR'}/hardware/arduino/boards.txt", ); GetOptions(\%Opt, |
