Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Fallback to /etc while searching for avrdude.conf #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ino/commands/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down