Ejemplo n.º 1
0
    def load(self, xml_file, max_depth=None, backup=None):
        """
        Load an xml file

        :param xml_file: str -- path of the xml file to load
        :param max_depth: int -- maximum depth for sequence creation
        :param backup: str -- path of the xml backup file
        """
        if self.loaded and self.started:
            if not self.interrupted:
                return
            self.wait()
        xml_sequence = parse_sequence_file(xml_file, max_depth, backup)
        self.sequence = RootSequenceThread(xml_sequence)
        self.loaded = True
        self.started = False
        self.interrupted = False