parameters: (dist_spec, script_name)
docstring: Locate distribution `dist_spec` and run its `script_name` script
docstring_summary: Locate distribution `dist_spec` and run its `script_name` script
docstring_tokens: Locate distribution dist_spec and run its script_name script
function: def run_script(dist_spec, script_name):
      """Locate distribution `dist_spec` and run its `script_name` script"""
      ns = sys._getframe(1).f_globals
      name = ns['__name__']
      ns.clear()
      ns['__name__'] = name
      require(dist_spec)[0].run_script(script_name, ns)
function_tokens: def run_script ( dist_spec , script_name ) : ns = sys . _getframe ( 1 ) . f_globals name = ns [ '__name__' ] ns . clear ( ) ns [ '__name__' ] = name require ( dist_spec ) [ 0 ] . run_script ( script_name , ns )