fixup
This commit is contained in:
parent
fb3614fb56
commit
e91e64094d
|
@ -25,9 +25,9 @@ def load_phase(json):
|
||||||
return json.get(v, '#t')
|
return json.get(v, '#t')
|
||||||
return Phase(
|
return Phase(
|
||||||
json['name'], json['text'],
|
json['name'], json['text'],
|
||||||
onexit=fallback('on_exit'),
|
onexit=fallback('onexit'),
|
||||||
onload=fallback('on_load'),
|
onload=fallback('onload'),
|
||||||
nextcond=fallback('exit_condition'))
|
nextcond=fallback('nextcond'))
|
||||||
|
|
||||||
def load_recipe(json):
|
def load_recipe(json):
|
||||||
return Recipe(
|
return Recipe(
|
||||||
|
@ -259,6 +259,7 @@ class Phase():
|
||||||
# self.envdata = {}
|
# self.envdata = {}
|
||||||
|
|
||||||
def satisfied_p(self, env):
|
def satisfied_p(self, env):
|
||||||
|
print('cond', self.nextcond)
|
||||||
return safe_eval(self.nextcond, env)
|
return safe_eval(self.nextcond, env)
|
||||||
|
|
||||||
def exit(self, env):
|
def exit(self, env):
|
||||||
|
|
Loading…
Reference in New Issue