def get_compiler_path():
 given_binary = os.environ.get('SOLC_BINARY')
 if given_binary:
  return given_binary
 for path in os.getenv('PATH', '').split(os.pathsep):
  path = path.strip('"')
  executable_path = os.path.join(path, BINARY)
  if (os.path.isfile(executable_path) and os.access(executable_path, os.X_OK)):
   return executable_path
 return None

def get_compiler_path ( ) : given_binary = os . environ . get ( 'SOLC_BINARY' ) if given_binary : return given_binary for path in os . getenv ( 'PATH' , '' ) . split ( os . pathsep ) : path = path . strip ( '"' ) executable_path = os . path . join ( path , BINARY ) if ( os . path . isfile ( executable_path ) and os . access ( executable_path , os . X_OK ) ) : return executable_path return None
return the path to the solc compiler .