import ntpath
import posixpath


def as_posixpath(location):
    """
    Return a posix-like path using posix path separators (slash or "/") for a
    `location` path. This converts Windows paths to look like posix paths that
    Python accepts gracefully on Windows for path handling.
    """
    return location.replace(ntpath.sep, posixpath.sep)