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

.model file to define default model for project #281

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
6 changes: 5 additions & 1 deletion ino/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ class Environment(dict):
if platform.system() == 'Darwin':
arduino_dist_dir_guesses.insert(0, '/Applications/Arduino.app/Contents/Resources/Java')

default_board_model = 'uno'
def get_default_board_model():
if os.path.exists(".model"):
return open(".model","r").readline().strip()
return 'uno'
default_board_model = get_default_board_model()
ino = sys.argv[0]

def dump(self):
Expand Down