class UmlRunner(Uml): def __init__(self, cfg=None): Uml.__init__(self) self.uml = UML() self.cfg = cfg self.options.update(self.cfg.get_umlopts()) def set(self, machine): self.cfg.change(machine) self.options['umlmachine'] = machine self.options['umid'] = machine self.options.update(self.cfg.get_umlopts()) self.options['ubd0'] = self.cfg['basefile'] def run(self, oldway=True): if not oldway: self.uml.start(map(str, self.options.items()), 1, 30, False) else: os.system(str(self)) def command(self, command): self.uml.shellcommand(command)
class UmlRunner(Uml): def __init__(self, cfg=None): Uml.__init__(self) self.uml = UML() self.cfg = cfg self.options.update(self.cfg.get_umlopts()) def set(self, machine): self.cfg.change(machine) self.options["umlmachine"] = machine self.options["umid"] = machine self.options.update(self.cfg.get_umlopts()) self.options["ubda"] = self.cfg["basefile"] def run(self, oldway=True): if not oldway: self.uml.start(map(str, self.options.items()), 1, 30, False) else: os.system(str(self)) def command(self, command): self.uml.shellcommand(command)
def __init__(self, cfg=None): Uml.__init__(self) self.uml = UML() self.cfg = cfg self.options.update(self.cfg.get_umlopts())