Esempio n. 1
0
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)
Esempio n. 2
0
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)
Esempio n. 3
0
 def __init__(self, cfg=None):
     Uml.__init__(self)
     self.uml = UML()
     self.cfg = cfg
     self.options.update(self.cfg.get_umlopts())
Esempio n. 4
0
 def __init__(self, cfg=None):
     Uml.__init__(self)
     self.uml = UML()
     self.cfg = cfg
     self.options.update(self.cfg.get_umlopts())