parameters: ( filename, glob )
return_statement: return fnmatch( realpath, os.path.realpath( ExpandVariablesInPath( glob ) ) )
docstring: Returns true if a filename matches a given pattern. Environment variables
    and a '~' in glob will be expanded and checking will be performed using
    absolute paths with symlinks resolved (except on Windows). See the
    documentation of fnmatch for the supported patterns.
docstring_summary: Returns true if a filename matches a given pattern. Environment variables
    and a '~' in glob will be expanded and checking will be performed using
    absolute paths with symlinks resolved (except on Windows). See the
    documentation of fnmatch for the supported patterns.
docstring_tokens: Returns true if a filename matches a given pattern . Environment variables and a ~ in glob will be expanded and checking will be performed using absolute paths with symlinks resolved ( except on Windows ) . See the documentation of fnmatch for the supported patterns .
function: def _MatchesGlobPattern( filename, glob ):
    """Returns true if a filename matches a given pattern. Environment variables
    and a '~' in glob will be expanded and checking will be performed using
    absolute paths with symlinks resolved (except on Windows). See the
    documentation of fnmatch for the supported patterns."""
  
    # NOTE: os.path.realpath does not resolve symlinks on Windows.
    # See https://bugs.python.org/issue9949
    realpath = os.path.realpath( filename )
    return fnmatch( realpath, os.path.realpath( ExpandVariablesInPath( glob ) ) )
function_tokens: def _MatchesGlobPattern ( filename , glob ) : # NOTE: os.path.realpath does not resolve symlinks on Windows. # See https://bugs.python.org/issue9949 realpath = os . path . realpath ( filename ) return fnmatch ( realpath , os . path . realpath ( ExpandVariablesInPath ( glob ) ) )