示例#1
0
 def initialize(self, trainer):
     self._out = trainer.out
     CommandItem.remove_commands_file(trainer.out)
     CommandsState.run(trainer.out)
     if isinstance(trainer.stop_trigger, IntervalTrigger):
         trainer.stop_trigger = _CommandIntervalTrigger(
             trainer.stop_trigger)
     else:
         trainer.stop_trigger = _CommandTrigger(trainer.stop_trigger)
示例#2
0
 def initialize(self, trainer):
     CommandItem.remove_commands_file(trainer.out)