comparison python/ppci/recipe.py @ 353:b8ad45b3a573

Started with strings
author Windel Bouwman
date Sun, 09 Mar 2014 18:49:10 +0100
parents 86b02c98a717
children c2ddc8a36f5e
comparison
equal deleted inserted replaced
352:899ae3aea803 353:b8ad45b3a573
6 from .target.target_list import target_list 6 from .target.target_list import target_list
7 7
8 8
9 targets = {t.name: t for t in target_list} 9 targets = {t.name: t for t in target_list}
10 targetnames = list(targets.keys()) 10 targetnames = list(targets.keys())
11
11 12
12 class RecipeLoader: 13 class RecipeLoader:
13 """ Loads a recipe into a runner from a dictionary or file """ 14 """ Loads a recipe into a runner from a dictionary or file """
14 def __init__(self): 15 def __init__(self):
15 self.directive_handlers = {} 16 self.directive_handlers = {}
65 66
66 def load_dict(self, recipe): 67 def load_dict(self, recipe):
67 for command, value in recipe.items(): 68 for command, value in recipe.items():
68 return self.directive_handlers[command](value) 69 return self.directive_handlers[command](value)
69 70
70
71