'Write all the scripts for `dist`, unless scripts are excluded'

def install_egg_scripts(self, dist):

    if ((not self.exclude_scripts) and dist.metadata_isdir('scripts')):
        for script_name in dist.metadata_listdir('scripts'):
            if dist.metadata_isdir(('scripts/' + script_name)):
                continue
            self.install_script(dist, script_name, dist.get_metadata(('scripts/' + script_name)))
    self.install_wrapper_scripts(dist)
