Skip to content

Commit

Permalink
Fix finding boards.txt (amperka#42) on newer OSX
Browse files Browse the repository at this point in the history
The newest builds of the Arduino IDE keep the `hardware/` tree under `Arduino.app/Contents/Java` rather than `Arduino.app/Contents/Resources/Java`. Fixes amperka#42.
  • Loading branch information
Quint Guvernator committed Oct 9, 2015
1 parent f23ee5c commit 03f9843
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ino/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class Environment(dict):

if platform.system() == 'Darwin':
arduino_dist_dir_guesses.insert(0, '/Applications/Arduino.app/Contents/Resources/Java')
arduino_dist_dir_guesses.insert(0, '/Applications/Arduino.app/Contents/Java')

default_board_model = 'uno'
ino = sys.argv[0]
Expand Down Expand Up @@ -214,7 +215,7 @@ def board_models(self):

# boards.txt can be placed in following places
# - hardware/arduino/boards.txt (Arduino IDE 0.xx, 1.0.x)
# - hardware/arduino/{chipset}/boards.txt (Arduino 1.5.x, chipset like `avr`, `sam`)
# - hardware/arduino/{chipset}/boards.txt (Arduino 1.5.x-1.6.x, chipset like `avr`, `sam`)
# - hardware/{platform}/boards.txt (MPIDE 0.xx, platform like `arduino`, `pic32`)
# we should find and merge them all
boards_txts = self.find_arduino_file('boards.txt', ['hardware', '**'],
Expand Down

0 comments on commit 03f9843

Please sign in to comment.