def is_local(filename, pathlist):
  '''
  Returns True if *filename* is a subpath of any of the paths in *pathlist*.
  '''

  filename = os.path.abspath(filename)
  for path_name in pathlist:
    path_name = os.path.abspath(path_name)
    if is_subpath(filename, path_name):
      return True
  return False
def is_local ( filename , pathlist ) : filename = os . path . abspath ( filename ) for path_name in pathlist : path_name = os . path . abspath ( path_name ) if is_subpath ( filename , path_name ) : return True return False
Returns True if *filename* is a subpath of any of the paths in *pathlist*.