(path, resolve_symlinks=True)
return os.path.normcase(path)
Convert a path to its canonical, case-normalized, absolute version.
Convert a path to its canonical, case-normalized, absolute version.
Convert a path to its canonical case - normalized absolute version .
def normalize_path(path, resolve_symlinks=True):
    # type: (str, bool) -> str
    """
    Convert a path to its canonical, case-normalized, absolute version.

    """
    path = expanduser(path)
    if resolve_symlinks:
        path = os.path.realpath(path)
    else:
        path = os.path.abspath(path)
    return os.path.normcase(path)
def normalize_path ( path , resolve_symlinks = True ) : # type: (str, bool) -> str path = expanduser ( path ) if resolve_symlinks : path = os . path . realpath ( path ) else : path = os . path . abspath ( path ) return os . path . normcase ( path )