parameters: (source)
return_statement: return source
docstring: Normalize the path.
  
    But not if that gets rid of a variable, as this may expand to something
    larger than one directory.
  
    Arguments:
        source: The path to be normalize.d
  
    Returns:
        The normalized path.
docstring_summary: Normalize the path.
docstring_tokens: Normalize the path .
function: def _NormalizedSource(source):
    """Normalize the path.
  
    But not if that gets rid of a variable, as this may expand to something
    larger than one directory.
  
    Arguments:
        source: The path to be normalize.d
  
    Returns:
        The normalized path.
    """
    normalized = os.path.normpath(source)
    if source.count('$') == normalized.count('$'):
      source = normalized
    return source
function_tokens: def _NormalizedSource ( source ) : normalized = os . path . normpath ( source ) if source . count ( '$' ) == normalized . count ( '$' ) : source = normalized return source