From eb9db3b4da25e552c036581cf18879d06a69b8b8 Mon Sep 17 00:00:00 2001 From: patmead Date: Thu, 13 Feb 2014 21:39:48 +1030 Subject: [PATCH] Fallback to /etc while searching for avrdude.conf Arch Linux stores it's system-wide avrdude.conf straight in /etc so this patch will allow compatibility with such a setup. I'm not familiar with this codebase and I've only tested this on my own machine, but hopefully this change is low-impact enough to be harmless enough and still help out the Arch Linux guys! --- ino/commands/upload.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ino/commands/upload.py b/ino/commands/upload.py index d954cae..090c32b 100644 --- a/ino/commands/upload.py +++ b/ino/commands/upload.py @@ -41,7 +41,8 @@ def discover(self): self.e.find_arduino_tool('avrdude', ['hardware', 'tools']) conf_places = self.e.arduino_dist_places(['hardware', 'tools']) - conf_places.append('/etc/avrdude') # fallback to system-wide conf on Fedora + conf_places.append('/etc/avrdude') # fallback to system-wide conf on Fedora... + conf_places.append('/etc') # ...and on Arch Linux self.e.find_file('avrdude.conf', places=conf_places) else: self.e.find_arduino_tool('avrdude', ['hardware', 'tools', 'avr', 'bin'])