def pathCheck(*args, **kwargs):
 moduleName = kwargs.get('moduleName', 'it')
 for arg in args:
  if (not quietRun(('which ' + arg))):
   error(((('Cannot find required executable %s.\n' % arg) + ('Please make sure that %s is installed ' % moduleName)) + ('and available in your $PATH:\n(%s)\n' % environ['PATH'])))
   exit(1)

def pathCheck ( * args , ** kwargs ) : moduleName = kwargs . get ( 'moduleName' , 'it' ) for arg in args : if ( not quietRun ( ( 'which ' + arg ) ) ) : error ( ( ( ( 'Cannot find required executable %s.\n' % arg ) + ( 'Please make sure that %s is installed ' % moduleName ) ) + ( 'and available in your $PATH:\n(%s)\n' % environ [ 'PATH' ] ) ) ) exit ( 1 )
make sure each program in *args can be found in $path .