From 46b4e9e8e7b9801a950defd2244349c80dc0674e Mon Sep 17 00:00:00 2001 From: nthapaliya Date: Thu, 17 Jul 2014 19:36:51 -0400 Subject: [PATCH] Darwin: look also for arduino in ~/Applications/ Some people like to install Arduino.app in their home folder. In this case, just a simple addition of where to look for in the arduino_dist_dir_guesses. A more involved rewrite could allow the user to specify where they have installed the arduino libs via command line or a config file. --- ino/environment.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ino/environment.py b/ino/environment.py index 8cb27e8..d46fe7b 100644 --- a/ino/environment.py +++ b/ino/environment.py @@ -80,6 +80,9 @@ class Environment(dict): if platform.system() == 'Darwin': arduino_dist_dir_guesses.insert(0, '/Applications/Arduino.app/Contents/Resources/Java') + arduino_dist_dir_guesses.insert(1, os.path.expanduser("~") + \ + '/Applications/Arduino.app/Contents/Resources/Java') + default_board_model = 'uno' ino = sys.argv[0]