def lexists(path):
 try:
  st = os.lstat(path)
 except OSError:
  return False
 return True

def lexists ( path ) : try : st = os . lstat ( path ) except OSError : return False return True
test whether a path exists .