def get_commands_from_file(self, mission_file, role):
        """Get commands from xml file as a list of (command_type:int, turnbased:boolean, command:string)"""
        doc = etree.parse(mission_file)
        mission = doc.getroot()
        return self.get_commands_from_xml(mission, role)
def get_commands_from_file ( self , mission_file , role ) : doc = etree . parse ( mission_file ) mission = doc . getroot ( ) return self . get_commands_from_xml ( mission , role )
Get commands from xml file as a list of (command_type:int, turnbased:boolean, command:string)