def solrctl():
 for dirname in os.environ.get('PATH', '').split(os.path.pathsep):
  path = os.path.join(dirname, 'solrctl')
  if os.path.exists(path):
   return path
 return None

def solrctl ( ) : for dirname in os . environ . get ( 'PATH' , '' ) . split ( os . path . pathsep ) : path = os . path . join ( dirname , 'solrctl' ) if os . path . exists ( path ) : return path return None
solrctl path .