def py_run(command_options='', return_std=False, stdout=None, stderr=None, script='epylint'):
 if (os.name == 'nt'):
  script += '.bat'
 command_line = ((script + ' ') + command_options)
 if (stdout is None):
  if return_std:
   stdout = PIPE
  else:
   stdout = sys.stdout
 if (stderr is None):
  if return_std:
   stderr = PIPE
  else:
   stderr = sys.stderr
 p = Popen(command_line, shell=True, stdout=stdout, stderr=stderr, env=_get_env(), universal_newlines=True)
 p.wait()
 if return_std:
  return (p.stdout, p.stderr)

def py_run ( command_options = '' , return_std = False , stdout = None , stderr = None , script = 'epylint' ) : if ( os . name == 'nt' ) : script += '.bat' command_line = ( ( script + ' ' ) + command_options ) if ( stdout is None ) : if return_std : stdout = PIPE else : stdout = sys . stdout if ( stderr is None ) : if return_std : stderr = PIPE else : stderr = sys . stderr p = Popen ( command_line , shell = True , stdout = stdout , stderr = stderr , env = _get_env ( ) , universal_newlines = True ) p . wait ( ) if return_std : return ( p . stdout , p . stderr )
run pylint from python command_options is a string containing pylint command line options; return_std indicates return of created standard output and error ; stdout and stderr are file-like objects in which standard output could be written .