original_docstring: 
      if there is a 'buildout.cfg' file in one of the parent directories of the
      given module it will return a list of all files in the buildout bin
      directory that look like python files.
  
      :param module_path: absolute path to the module.
      :type module_path: str
      
docstring: if there is a 'buildout.cfg' file in one of the parent directories of the
  given module it will return a list of all files in the buildout bin
  directory that look like python files.
docstring_tokens: if there is a ' buildout . cfg ' file in one of the parent directories of the given module it will return a list of all files in the buildout bin directory that look like python files .
code: def _get_buildout_scripts(module_path):
      """
      if there is a 'buildout.cfg' file in one of the parent directories of the
      given module it will return a list of all files in the buildout bin
      directory that look like python files.
  
      :param module_path: absolute path to the module.
      :type module_path: str
      """
      project_root = _get_parent_dir_with_file(module_path, 'buildout.cfg')
      if not project_root:
          return []
      bin_path = os.path.join(project_root, 'bin')
      if not os.path.exists(bin_path):
          return []
      extra_module_paths = []
      for filename in os.listdir(bin_path):
          try:
              filepath = os.path.join(bin_path, filename)
              with open(filepath, 'r') as f:
                  firstline = f.readline()
                  if firstline.startswith('#!') and 'python' in firstline:
                      extra_module_paths.append(filepath)
          except IOError as e:
              # either permission error or race cond. because file got deleted
              # ignore
              debug.warning(unicode(e))
              continue
      return extra_module_paths
code_tokens: def _get_buildout_scripts ( module_path ) : project_root = _get_parent_dir_with_file ( module_path , 'buildout.cfg' ) if not project_root : return [ ] bin_path = os . path . join ( project_root , 'bin' ) if not os . path . exists ( bin_path ) : return [ ] extra_module_paths = [ ] for filename in os . listdir ( bin_path ) : try : filepath = os . path . join ( bin_path , filename ) with open ( filepath , 'r' ) as f : firstline = f . readline ( ) if firstline . startswith ( '#!' ) and 'python' in firstline : extra_module_paths . append ( filepath ) except IOError as e : debug . warning ( unicode ( e ) ) continue return extra_module_paths
short_docstring: if there is a 'buildout.cfg' file in one of the parent directories of the
  given module it will return a list of all files in the buildout bin
  directory that look like python files.
short_docstring_tokens: if there is a ' buildout . cfg ' file in one of the parent directories of the given module it will return a list of all files in the buildout bin directory that look like python files .
comment: """
      if there is a 'buildout.cfg' file in one of the parent directories of the
      given module it will return a list of all files in the buildout bin
      directory that look like python files.
  
      :param module_path: absolute path to the module.
      :type module_path: str
      """$SEP$# either permission error or race cond. because file got deleted$SEP$# ignore