'Repack all the templates in ClientBuilder.template_dir.'

def RepackAllTemplates(self, upload=False, token=None):

    for template in os.listdir(config.CONFIG['ClientBuilder.template_dir']):
        template_path = os.path.join(config.CONFIG['ClientBuilder.template_dir'], template)
        self.RepackTemplate(template_path, os.path.join(config.CONFIG['ClientBuilder.executables_dir'], 'installers'), upload=upload, token=token)
        if template_path.endswith('.exe.zip'):
            print ('Repacking    as    debug    installer:    %s.' % template_path)
            self.RepackTemplate(template_path, os.path.join(config.CONFIG['ClientBuilder.executables_dir'], 'installers'), upload=upload, token=token, context=['DebugClientBuild    Context'])
